TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Priyank Khare
NA
256
76.1k
dropdown list problem
Sep 12 2012 6:54 AM
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.
Reply
Answers (
5
)
Decoding of Password in ASP.NET
how to develop a knowledge as software developer?