如题 Dim hst As New Hashtable
hst.Add("0001", "111")
hst.Add("0002", "222")
With dropdownlist
.DataSource = hst
.DataBind()
End With
这样不行!
hst.Add("0001", "111")
hst.Add("0002", "222")
With dropdownlist
.DataSource = hst
.DataBind()
End With
这样不行!
解决方案 »
- ReportView 9.0导出 pdf乱码问题
- asp.net+Paypal沙箱测试时出现的问题,请指教。
- 如何理解BaseDataBoundControl.RequiresDataBinding属性
- 这段VB.NET代码转换成C#.NET 该怎么写?
- 关于从数据库 取数据 并截取 加省略号 ? 新人求救!
- 如何在WEB.CONFIG中配置取消对某一页的登录验证
- DataGrid的ItemCommand事件???
- treeview不支持asp.net1.1???
- 如何让vb.net,C#两种后台编码文件在同一ASP.NET项目(默认脚本vb.net)同时使用?
- ASP.NET刷新问题
- MCAD/MCSD制胜宝典——用Visual Basic.NET和Visual C#.NET开发Windows应用程序
- 新建项目问题~
MyDataList.DataValueField="Key";
MyDropDownList.DataSource = hst;
MyDropDownList.DataTextField = "Value";
MyDropDownList.DataValueField="Key";
MyDropDownList.DataBind();
.DataSource = hst
.DataTextField = "Value";
.DataValueField="Key";
.DataBind()