If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
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 ........
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")
<SELECT>
<%
Do While Not rs.BOF
%>
<OPTION><%=rs("FieldName")%><OPTION>
<%
'remember to move to the next record
rs.MoveNext
Loop
%>
</SELECT>