I am new to asp.net.
Currently I am developing a registration form.
it contains user name, email, password textboxes.
and several drop down lists, such as date, month and country.
Once user fill out the form and click on the submit button.
The program firstly check whether the email or user name exists in the database.
If exists, then
from is not submitted
re-enter user name.
the problem is that the selected values in drop down lists all go back to initial values. i.e go back to the first option. after submitted.
Can anybody please tell me how to make the drop down lists values remains the same if page is submitted but was not successful.
Thanks in advance.
Currently I am developing a registration form.
it contains user name, email, password textboxes.
and several drop down lists, such as date, month and country.
Once user fill out the form and click on the submit button.
The program firstly check whether the email or user name exists in the database.
If exists, then
from is not submitted
re-enter user name.
the problem is that the selected values in drop down lists all go back to initial values. i.e go back to the first option. after submitted.
Can anybody please tell me how to make the drop down lists values remains the same if page is submitted but was not successful.
Thanks in advance.
Comment