Click here to Skip to main content
16,007,843 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello there,

I'm a beginner in ASP.net.
I'm developing a online library application(WEB App) using c# in VS 2010-Professional.

According to my site, when i click on registration link there is a drop down list which includes two values
1.Faculty
2.Student
When the user selects on faculty, it must load the registration page corresponding to faculty.
I have enabled 'autopostback' and gave the value (at faculty item) to be regf.aspx(which is my faculty registration page). But when i run it(and select 'faculty' from the dropdown list) its not loading the required page.

Can any one help me out with this ??????
Posted

1 solution

My best guess without seeing your code is that you've used the SelectedIndexChanged event. If you're loading your drop down and "Faculty" is the default value then reselecting from the list isn't changing the selected index.

Add another value as the the default value for the drop down. "--Select--" perhaps? Then when the user selects either of the other options the event fires as expected.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900