使用C#在asp.net中下拉列表 [英] drop down list in asp.net using c#
本文介绍了使用C#在asp.net中下拉列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在我的表单中,我有两个下拉列表(DDL),第一个是州",第二个是城市".
在同一页的Gridview中也使用,在那我也为每一行都放了编辑按钮.
当我单击编辑"按钮时,必须将行值发送到我的表单中的相应区域.那时DDL状态显示的是所选值的两倍..
那么
In my form i have two dropdownlist(DDL), first one is ''State'' next one is ''City''.
In same page Gridview also using,in that i put edit button also for every row.
when i click the edit button the row values must be sent to their corresponding areas in the my form. That time DDL-state shows twice the selected value..
then how can i remove the repeted value in DDL.?
推荐答案
在编辑"按钮单击时要注意DDL.您可以清除并重新添加列表项.或者,您可以在更新DDL项目时实施检查点.
Take care of DDL on Edit button click. You can clear and re-add the list items. Or you can implement a check point while updating DDL items.
这篇关于使用C#在asp.net中下拉列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文