
如何在datalist中使用用DropDownList控件绑定数据库
在DataList模板项中添加了一DropDownList控件,现在要将DropDownList控件绑定到数据库中,如何实现?...
在DataList模板项中添加了一DropDownList控件,现在要将DropDownList控件绑定到数据库中,如何实现?
展开
展开全部
你要写事件委托函数代码?那和其它控件没有区别啊。
你如果想找到第index个Item的DropDownList,可以在代码中
DropDownList ddl=(DropDownList)DataList1.Items[index].FindControl("DropDownList1");
你如果想找到第index个Item的DropDownList,可以在代码中
DropDownList ddl=(DropDownList)DataList1.Items[index].FindControl("DropDownList1");
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询