Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

loading drop down box 1

Status
Not open for further replies.

rry2k

Programmer
Jun 28, 2001
678
US
Can someone tell me how to load a drop down box in asp?

Thanks..Russ
 
Could you be more specific in your question? Load a dropdown box from what? From a database, from another dropdown box? Or are you just asking how to define a dropdown box?
 
Russ,

From a database... objRst represents the recordset.
Code:
<select name=&quot;somename&quot;>
<%
WHILE NOT objRst.EOF
%>
  <option value=&quot;<%=objRst(&quot;value&quot;)%>&quot;><%=objRst(&quot;text&quot;)%></option>
<%
  objRst.MoveNext
WEND
%>
</select>

ToddWW
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top