protected void NotificationType_OnSelectedIndexChanged(object sender, EventArgs e) { if (ddlAssetGroupName1.SelectedValue != "WL") { DataSet ds = onlineOrderBackOfficeBo.GetNotificationHeader(Convert.ToInt32(DropDownList1.SelectedValue), adviserVo.advisorId); DropDownList2.Visible = true; Label1.Visible = true; if (ds.Tables[0].Rows.Count > 0) { DropDownList2.DataSource = ds; DropDownList2.DataTextField = ds.Tables[0].Columns["CTNS_NotificationHeader"].ToString(); DropDownList2.DataValueField = ds.Tables[0].Columns["CTNS_Id"].ToString(); DropDownList2.DataBind(); DropDownList2.Items.Insert(0, new System.Web.UI.WebControls.ListItem("Select", "0")); } else { DropDownList2.Items.Clear(); } } }