hello,
my problem is that:-
i'v 3 dropdown lists and by default 1st one will display and other are hide.
when we select any value from 1 then it should be display other two.
for ex:-
ddl1 if we select values between 1-2 it should be display other dropdown but if values are <2 then other should display.
1
2
3
4
5
so how can i achieve this.
i gave following code but not working:-
protected void DropDownList5_SelectedIndexChanged(object sender, EventArgs e)
{
int adlt = Convert.ToInt32(DropDownList5.SelectedValue);
if (adlt <= 2)
{
Label10.Visible = false;
Label11.Visible = false;
DropDownList7.Visible = false;
DropDownList8.Visible = false;
}
else
{
Label10.Visible = true;
Label11.Visible = true;
DropDownList7.Visible = true;
DropDownList8.Visible = true;
}
}
please help me.