Loading Combo Selection from requesting page parameter

  • Thread starter Barry G. Sumpter
  • Start date
B

Barry G. Sumpter

Hi all,

I've looked and looked for the answer to this but can't seem to get the
correct key words to search on google....

I'm no longer a complete novice but am trudging along...

I have a home page containing multiple hyperlinks to mySecondPage.

http://mydomain.com/mySecondPage.htm?myParam=A
http://mydomain.com/mySecondPage.htm?myParam=B
http://mydomain.com/mySecondPage.htm?myParam=C
http://mydomain.com/mySecondPage.htm?myParam=D
http://mydomain.com/mySecondPage.htm?myParam=E

mySecondPage has a drop down box containig A,B,C,D, and E in its list

I'd like to have the drop down box default to myParam value.

Is there an HTML command that will allow me to set the selectoin value of
the drop down box?

Or do I have to use an ASP command?

<select size="1" name="cboMyCombo">
<option selected
value="A">
A
</option>
<option
value="B">
B
</option>
<option
value="C">
C
</option>
<option
value="D">
D
</option
value="e">
<option>
e
</option>
</select>

Any constructive help would be appreciated.

baz
 
B

Barry G. Sumpter

may have fond something to help:
<select name=SearchFormName etc>

<option <%If request.form(" SearchFormName" ) = " this value" then
response.write " selected" %>>This value</option>

<option <%If request.form(" SearchFormName" ) = " that value" then
response.write " selected" %>>That value</option>

</select>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top