我在做省市级联,其中 this.ddlArea.DataValueField = "AreaId";然后我想获取AreaId的值要怎么获取啊?
2 回答

慕斯709654
TA贡献1840条经验 获得超5个赞
DataTable dt=你 查询到的地区表、 然后指定给DropDownList作为数据源,绑定字段名就可以了
this.DropDownList1.DataSource=dt;
this.ddlArea.DataValueField = "AreaId";
DropDownList1.DataTextField="AreaName";
- 2 回答
- 0 关注
- 456 浏览
添加回答
举报
0/150
提交
取消