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.

Abhimanyu K VatsaPosted Sep 12, 2012, 9:37 AM
ASPX Page
Code Behind
hope this helps.
Priyank KharePosted Sep 12, 2012, 8:07 AM
Pradip PandeyPosted Sep 12, 2012, 7:46 AM
Priyank KharePosted Sep 12, 2012, 7:39 AM
when i am using breakpoint on it, on execution the cursor is coming on this event.
now please tell what to do..
Pradip PandeyPosted Sep 12, 2012, 7:33 AM
Use this to get the selected value from first DropDownList5_SelectedIndexChanged event.
int adlt = int.Parse(DropDownList5.SelectedValue.ToString());
After that apply your condition.
Hope it will help.