|
I have a dropdown box with 4 options to choose from,once the chosen option is submitted it shows up in the table with the option I selected but when I go back into the record it defaults back to the first option in the dropdown list ie Manchester.
Here's my code
Response.Write "<option>Manchester</option>"
Response.Write "<option>Leeds</option>"
Response.Write "<option>London</option>"
Response.Write "<option>UNKNOWN</option>"
|
|
|
You mean when you submit the form, you get the option you selected as expected, but when you reload the form the top option is selected? If so, that's normal. If no option has the "Selected" attrib, the first becomes the default. Do I follow you?
MD :-)
|
|
|
If you want that your dropdown menu "remember" his state, then you must save it in a variable when ou submit your page, and instead of using HTML to write your dropdown menu use ASP and check the variable so you can decide in what line you activate the "checked" feature.
Regards
<<< ------------------------------------------ >>>
Andres Berger Garcia -- Marketing Manager
www.MicroWebHost.com
Minisite Hosting $9.95 Yearly
<<< ------------------------------------------ >>>
|
|
|
<<< ------------------------------------------ >>>
Andres Berger Garcia -- Marketing Manager
<a href="http://www.MicroWebHost.com">www.MicroWebHost.com</a>
Minisite Hosting $9.95 Yearly
<<< ------------------------------------------ >>>
|
|
|
|
|
|
|
|