protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { BLLControl bllControl = new BLLControl(Session[Comm.SessionKey.UserID].ToString()); this.ddlData.Items.Clear(); foreach (CodeListInfo item in bllControl.GetList <CodeListInfo>(" CodeType = 'userType' ")) { this.ddlData.Items.Add(new ListItem(item.CodeName, item.CodeValue)); } this.ddlData.SelectedValue = "2"; this.ddlData.SelectedValue = this.selectValue; } }