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;
}
Experts Exchange (EE) has become my company's go-to resource to get answers. I've used EE to make decisions, solve problems and even save customers. OutagesIO has been a challenging project and... Keep reading >>
Our community of experts have been thoroughly vetted for their expertise and industry experience.