preselect item in dropdown box

Results 1 to 2 of 2

Thread: preselect item in dropdown box

  1. #1
    asp@dell Guest

    Default preselect item in dropdown box

    Anyone know how to preselect an item in a dropdown box? When a page appears for a specific user, I need to pull that user&#039s info from the database and select their items in a dropdown box. Say they are level 1. So in the Level dropdown I need the number &#039 1&#039 selected (highlighted) when the screen comes up. I&#039ve tried but it defaults to the first value in the box. Any help is greatly appreciated!

  2. #2
    Join Date
    Dec 1969

    Default RE: preselect item in dropdown box

    If you have that information in the users DB record you can test against it <BR><BR>&#060;Option &#060;%If RS("Somefield")="Something" The Response.write " Selected"%&#062;&#062;Some Option

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts