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.


Pradip PandeyRank #452 · 5.6K reputationPosted Sep 12, 2012, 3:33 AM EDT
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.
Priyank Khare154 reputationPosted Sep 12, 2012, 3:39 AM EDT
when i am using breakpoint on it, on execution the cursor is coming on this event.
now please tell what to do..
Pradip PandeyRank #452 · 5.6K reputationPosted Sep 12, 2012, 3:46 AM EDT
Priyank Khare154 reputationPosted Sep 12, 2012, 4:07 AM EDT
Abhimanyu K VatsaRank #14 · 51.7K reputationPosted Sep 12, 2012, 5:37 AM EDT
ASPX Page
Code Behind
hope this helps.