绑定DropDownList控件
来源:互联网 发布:淘宝上架商品没有品牌 编辑:程序博客网 时间:2024/05/01 13:24
string sql = "select id,SZQX from tb_city";
Database db = new Database();
DataTable dt = db.GetDataTable(sql);
DropDownList1.DataSource = dt;
DropDownList1.DataTextField = "SZQX";
DropDownList1.DataValueField = "id";
DropDownList1.DataBind();
DropDownList1.Items.Insert(0, new ListItem("请选择...", "0"));
- DropDownList控件绑定
- 绑定DropDownList控件
- DropDownList控件绑定数据库
- DropDownList 控件如何绑定数据
- DropDownList控件的数据绑定
- DropDownList控件的数据绑定
- 绑定Enum到DropDownList控件的方法
- 绑定Enum到DropDownList控件的方法
- 绑定控件数据源对于DropDownList类型的
- 泛型list<T>绑定dropdownlist控件
- DataSet绑定ListBox、DropDownList、RadioButtonList、CheckBoxList控件
- dropDownList 控件动态绑定数据和读取
- DropdownList控件动态绑定数据源两…
- DropDownList控件的使用(数据绑定)
- 数据库信息绑定DropDownList控件的Item
- DropDownList控件的使用(数据绑定)
- dropdownlist控件如何绑定动态数据
- DropDownList 控件 可编辑 查询 绑定数据
- axis2创建webservice客户端全过程(调用.net web服务)
- javascript开发系列(多框架)
- /dev/null 2>&1 详解
- 对VS2008生成智能win32程序简单理解
- 漆黑的夜
- 绑定DropDownList控件
- 测试基本术语 (一)
- HttpService 传递参数的方法
- PHP交换数组中的元素和值
- 【转】svn强制要求提交注释--pre-commit钩子
- Java正则表达式详解
- Visual Studio 2010 Ultimate beta2下载
- cppunit学习文章
- 常用表格样式表