Yes if else works as expected. But the radiobuttonlist is not visible on the selectedindex changed. Here is the code which i have actualy used in double qutoes. Pleae help me out
protected void ddlProgStatus_SelectedIndexChanged(object sender EventArgs e)
{
if (ddlProgStatus.SelectedIndex != 0)
{
if
(ddlProgStatus.SelectedItem.Text.Contains("Quotation"))
{
rblSelfPA.Visible =true;
}
else
{
rblSelfPA.Visible = false;
}
grdQuestions.Visible = true;
BindGridStatusQuestions();
}
else
{
grdQuestions.Visible = false;
divOrderWon.Visible = false;
}
}