
如何通过 DropDownList将数据库中的信息在TextBox中显示出来
拜托,拜托,小白求教,请给出详细的代码解析。问题地址:http://zhidao.baidu.com/question/199830634204370725.html...
拜托,拜托,小白求教,请给出详细的代码解析。
问题地址:
http://zhidao.baidu.com/question/199830634204370725.html 展开
问题地址:
http://zhidao.baidu.com/question/199830634204370725.html 展开
展开全部
1. 将查询出来的数据集绑定到
DropDownList1.DataSource = ds;
DropDownList1.DataTextField = "";//Text 显示
DropDownList1.DataValueField = "";//值
DropDownList1.DataBind();
2.用JQUERY、 当DropDownList1 Change 时,将DropDownList1 的text给赋值到对应 TextBox
DropDownList1.DataSource = ds;
DropDownList1.DataTextField = "";//Text 显示
DropDownList1.DataValueField = "";//值
DropDownList1.DataBind();
2.用JQUERY、 当DropDownList1 Change 时,将DropDownList1 的text给赋值到对应 TextBox
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询