您的位置:首页 > 其它

对下拉控件的绑定

2004-12-14 11:38 183 查看
Datatable dt1 = .....(获取数据)

this.DropDownList2.DataTextField = "fullName";

    this.DropDownList2.DataValueField = "ID";

    this.DropDownList2.DataSource =dt1;

    this.DropDownList2.DataBind();
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐