D
Drew
I am trying to build a small app that shows a Course Title from the
database, then displays a dropdown full of categories for the user to choose
one...
I thought a loop would be the best way to accomplish this, but since the
dropdown is dynamic, I am having problems. Can someone help me out here?
Here is my code,
For i = 1 to Num
Response.Write("<table width='100%' border='0' cellspacing='0'
cellpadding='0'><tr><td
width='52%'><%=(rsTitles.Fields.Item("Title").Value)%></td><td
width='48%'><select name='select'><option value=''>-- Select a
Category --</option><%While (NOT rsTitleCat.EOF)%><option
value='<%=(rsTitleCat.Fields.Item("CatID").Value)%>'><%=(rsTitleCat.Fields.Item("Category").Value)%></option><%rsTitleCat.MoveNext()
Wend If (rsTitleCat.CursorType > 0) Then rsTitleCat.MoveFirst Else
rsTitleCat.Requery End
If%></select></td></tr><tr><td> </td><td> </td></tr></table>")
Next
Thanks,
Drew
database, then displays a dropdown full of categories for the user to choose
one...
I thought a loop would be the best way to accomplish this, but since the
dropdown is dynamic, I am having problems. Can someone help me out here?
Here is my code,
For i = 1 to Num
Response.Write("<table width='100%' border='0' cellspacing='0'
cellpadding='0'><tr><td
width='52%'><%=(rsTitles.Fields.Item("Title").Value)%></td><td
width='48%'><select name='select'><option value=''>-- Select a
Category --</option><%While (NOT rsTitleCat.EOF)%><option
value='<%=(rsTitleCat.Fields.Item("CatID").Value)%>'><%=(rsTitleCat.Fields.Item("Category").Value)%></option><%rsTitleCat.MoveNext()
Wend If (rsTitleCat.CursorType > 0) Then rsTitleCat.MoveFirst Else
rsTitleCat.Requery End
If%></select></td></tr><tr><td> </td><td> </td></tr></table>")
Next
Thanks,
Drew