I am getting infos from a database to get a drop down list filled. When I submit the form I want to automatically select the selected item but it doesn't select. Heres my code where it doesn't work.
<% Do While not rsCountries.EOF %>
" <% if Request.Form("ddlSearchCountry") = rsCountries("CountryID") then %> selected <% end if %>>
<% = rsCountries("Country") %>
I've done this tones of time but this time it just won't work. The Request.Form works because i checked if it gets filled by putting it beside <% = rsCountries("Country") %>.
Thank you in advance,