//获取 下拉框 数据 protected void GetDataDropDownList() { DataTable table = user.userSocial(Session["socialNumber"].ToString()); DropDownList1.DataSource = table.DefaultView; DropDownList1.DataTextField = "ID"; DropDownList1.DataValueField = "value"; DropDownList1.DataBind(); ListItem li = new ListItem("--请选择--", "0"); // DataTable table0 = user.showPerson(Session["managerSocial"].ToString()); // int val = int.Parse(table.Rows[0]["value"].ToString()); DropDownList1.Items.Insert(0, li); }