HighDots Forums  

populate combo in asp

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss populate combo in asp in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Henry
 
Posts: n/a

Default populate combo in asp - 07-18-2003 , 11:05 AM






Can someone please tell me what they think is wrong with this code to
populate a combo :

<select name="select">
<%
While ((Repeat1__numRows <> 0) AND (NOT rsBranches.EOF))
%>
<option
value="<%=(rsBranches.Fields.Item("BRANCHNAME").Va lue)%>"><%=(rsBranches.Fie
lds.Item("BRANCHNAME").Value)
%>
</option>
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
rsBranches.MoveNext()
Wend
%>
</select>

The combo box never contains anything.




Reply With Quote
  #2  
Old   
Ron
 
Posts: n/a

Default Re: populate combo in asp - 07-18-2003 , 12:44 PM






I don't think its necessary to have the recordcount (numRows) as a
condition;

While Not rsBranches.EOF
' populate combo
rsBranches.MoveNext
Wend

--
Ron



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.