aspx
<asp:DropDownList ID="ddlUserType" runat="server" Width ="100px">
<asp:ListItem Value = "1" Text = "网格长">网格长</asp:ListItem><asp:ListItem Value = "2" Text = "单位负责人">单位负责人</asp:ListItem><asp:ListItem Value = "3" Text = "公众网格员">公众网格员</asp:ListItem><asp:ListItem Value = "4" Text = "专职网格员">专职网格员</asp:ListItem></asp:DropDownList>
cs
读取
ddlUserType.SelectedValue = sdr["flag"].ToString();
入库
string strddltype = this.ddlUserType.SelectedValue;