且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在下拉列表中添加额外的值,该列表基于asp.net中databind上的父下拉列表

更新时间:2023-12-01 15:22:16

一种方法是在绑定项目之前,你可以将附加项目插入到DataSet绑定中。

尝试这种方式或提供代码示例。

I am using two dropdown list box. dropdown 2 get data from dropdown 1 based on databind. Now i want add one extra value into dropdown list 2...If i am using AppendDataBoundItems="true" mean dropdown list 2 not working properly...so, plz help me to correct this problem...

One way is before bind the item, you can insert the additional item to DataSet bind that.
Try that way or provide your code sample.