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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding values to a Select control at run-time

Status
Not open for further replies.

wf

Programmer
Feb 1, 2001
32
US
I need to add values to a select control (HTML DropDown Control) at run-time.

Please help!!!
 
sql = "SELECT CODE,DESCRIPTION FROM TEST"
rs.open sql, Conn

response.write &quot;<select name=Select1>&quot; &_
&quot;<option value=XXX>--choose--&quot;
while not rs.eof
response.write &quot;<option value=&quot; & rs(0) & &quot;>&quot; & rs(1)
rs.movenext
wend
response.Write &quot;</select>&quot;

br
Gerard
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top