Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2004

    Unanswered: How to populate a list box/menu using ASP ??

    I have a list box/menu in my form, the values of which come from the database..i have retrieved those values but now i am not finding a way to put these values into the list/menu...using ASP ??? Can anyone please help me out ........

  2. #2
    Join Date
    Mar 2004

    Re: How to populate a list box/menu using ASP ??

    I assume that when you say you have retrieved the records from the database they are stored in a RecordSet.

    If this is the case then you need to loop through the recordset while writing each record to your ASP file within the select tag of your list/menu box.

    e.g. (assuming the name of your recordset is "rs" and you have a field by the name "FieldName")

    Do While Not rs.BOF
    'remember to move to the next record

Posting Permissions

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