asked on
DropDownList selectedInsuranceProductType = (DropDownList)InsuranceTypesList.FindControl("insuranceProductsList");
if (selectedInsuranceProductType.SelectedValue == "Health")
{
panelHealth.Visible = true;
}
else if (selectedInsuranceProductType.SelectedValue == "Life")
{
panelLife.Visible = true;
}
else if (selectedInsuranceProductType.SelectedValue == "Accident")
{
panelAccident.Visible = true;
}
else if (selectedInsuranceProductType.SelectedValue == "Dental")
{
panelDental.Visible = true;
}
else
{
panelHealth.Visible = false;
panelLife.Visible = false;
}