dynamic selectboxes

Results 1 to 2 of 2

Thread: dynamic selectboxes

  1. #1
    poc Guest

    Default dynamic selectboxes

    What is the best way to create SelectBoxes dynamically. To clarify, based on entries in a table (1-Name1, 2-Name2, 3-Name3, etc.), im goin to have to create and fill selectboxes. Is it just a loop within a loop?

  2. #2
    M. Robold Guest

    Default RE: dynamic selectboxes

    To do this using a database, just establish your recordset and then move through the recordset, creating an option for each record.<BR><BR>Set up your select box first, and then before you close the /Select tag, you fill in your options from the db with:<BR><BR>Do Until rs.EOF<BR> Response.Write "&#060;option&#062;" & rs("FieldtoDisplay") & "&#060;/option&#062;"<BR>Loop<BR><BR>And then close your selection.

Posting Permissions

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