代码:
1 if (dr["jhlx"].ToString() == "1") 2 ddlStyle.SelectedIndex = 0; 3 else if (dr["jhlx"].ToString() == "2") 4 ddlStyle.SelectedIndex = 1;