点击编辑的时候如何绑定DropDownList
代码:
1 if (dr["jhlx"].ToString() == "1") 2 ddlStyle.SelectedIndex = 0; 3 else if (dr["jhlx"].ToString() == "2") 4 ddlStyle.SelectedIndex = 1;
代码:
1 if (dr["jhlx"].ToString() == "1") 2 ddlStyle.SelectedIndex = 0; 3 else if (dr["jhlx"].ToString() == "2") 4 ddlStyle.SelectedIndex = 1;