protected void ddlclient_SelectedIndexChanged(object sender, EventArgs e) { DA_Marketing mar = new DA_Marketing(); if (ddlclient.SelectedItem.Value != "None") { DataSet ds = new DataSet(); ds = mar.GetJobposition(ddlclient.SelectedItem.Value); ddlposition.DataSource = ds.Tables[0]; ddlposition.DataTextField = "jobtitle"; ddlposition.DataValueField = "JobID"; ddlposition.DataBind(); ddlposition.Items.Insert(0, new System.Web.UI.WebControls.ListItem("Select", "Select")); ddlIndustry.Visible = false; lbltext.Visible = false; } else { ddlposition.Items.Clear(); ddlposition.Items.Insert(0, new System.Web.UI.WebControls.ListItem("None", "None")); ddlIndustry.Visible = true; lbltext.Visible = true; fillIndustrieslist(); } }