protected void extddlSpeciality_SelectedIndexChanged(object sender, EventArgs e) { if (extddlSpeciality.Text != "NA") { lblProcedureCode.Visible = true; ddlProcedureCode.Visible = true; _reportBO = new Bill_Sys_ReportBO(); DataSet DS = new DataSet(); DS = _reportBO.GetProcedureCode(txtCompanyID.Text, extddlSpeciality.Text); ddlProcedureCode.DataSource = DS; ddlProcedureCode.DataValueField = "Code"; ddlProcedureCode.DataTextField = "Description"; ddlProcedureCode.DataBind(); ListItem objTest = new ListItem(); objTest.Text = "--- Select ---"; objTest.Value = "NA"; ddlProcedureCode.Items.Insert(0, objTest); } else { ddlProcedureCode.SelectedIndex = 0; lblProcedureCode.Visible = false; ddlProcedureCode.Visible = false; lblProcedureDesc.Visible = false; lstProcedureDesc.Visible = false; } }