protected void NotificationHeader_OnSelectedIndexChanged(object sender, EventArgs e) { DataSet ds = onlineOrderBackOfficeBo.GetNotificationCommChannel(Convert.ToInt32(DropDownList2.SelectedValue)); if (ds.Tables[0].Rows.Count > 0) { DropDownList3.DataSource = ds; DropDownList3.DataTextField = ds.Tables[0].Columns["Channel"].ToString(); DropDownList3.DataValueField = ds.Tables[0].Columns["Channel"].ToString(); DropDownList3.DataBind(); DropDownList3.Items.Insert(0, new System.Web.UI.WebControls.ListItem("Select", "0")); } else { DropDownList3.Items.Clear(); } }