请问这样将SqlDataReader (myReader)的第一列绑定到 DropDownList(myDropDownList)为什么不对呢?myDropDownList.DataSource = myReader;
myDropDownList.DataTextField = myReader.GetValue(0).ToString();
myDropDownList.DataBind();希望能解释为什么不对。该怎么么绑定呢?不要一行一行的用Add()添加。
myDropDownList.DataTextField = myReader.GetValue(0).ToString();
myDropDownList.DataBind();希望能解释为什么不对。该怎么么绑定呢?不要一行一行的用Add()添加。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货