下拉列表删除已保存的项目 [英] Drop down list remove the saved item

查看:82
本文介绍了下拉列表删除已保存的项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的下拉列表包含3个项目:

 1。选择
2.是
3.否



一旦我选择是并保存,下一次重复是值我无法更改选择。

解决方案

保存后更改DropDownList的选定索引如下。

 DropDownListID.SelectIndex = -1; 





 DropDownListID.selectValue =  1   //  如果你想1.选择 


保存为该用途未更改的选择值



 DropDownListID。 SelectIndex =  0 ; 









 DropDownListID.selectValue =   0 


My drop down list contains 3 items:

1. Select
2. Yes
3. No


Once I select "Yes" and save it, the next time the "Yes" value is repeated and I cannot change the selection.

解决方案

After saving change the selected index of the DropDownList as below.

DropDownListID.SelectIndex = -1 ;


or

DropDownListID.selectValue = 1 // if u want to 1.Select 


After saving select value not changed for that use

DropDownListID.SelectIndex =0;



or

DropDownListID.selectValue ="0";


这篇关于下拉列表删除已保存的项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆