111,126
社区成员
发帖
与我相关
我的任务
分享
private void InitCityType()
{
this.DropDownListCityType.Items.Clear();
this.DropDownListCityType.DataTextField = "CITY_TYPE_NAME";
this.DropDownListCityType.DataValueField = "CITY_TYPE";
this.DropDownListCityType.DataSource = DicClass.GetCityList(int.Parse(this.DropDownListProvinceType.SelectedValue));
this.DropDownListCityType.DataBind();
this.DropDownListCityType.Items.Add(new ListItem("--选择全部--", "-1"));
this.DropDownListCityType.SelectedIndex = this.DropDownListCityType.Items.Count - 1;
}