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.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > dopdown list problem

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-17-06, 23:53
neha101 neha101 is offline
Registered User
 
Join Date: Sep 2006
Posts: 13
Question dopdown list problem

i have a dopdown list name="sel<%=RS("NAME"%>". everytime it loops through the record it gets different name. now after submitting the asp page to itself how do i retrieve the different values of this dropdown list who has different names. Please help...
Reply With Quote
  #2 (permalink)  
Old 09-18-06, 02:01
archMEL archMEL is offline
Registered User
 
Join Date: Sep 2006
Posts: 8
With a for loop or do while you will retrieve these values :
Do While Not RS.EOF
<option name='choice' value='<%=RS('name')%>'><%=RS("name")%>
RS.MoveNext
Loop

and then you get every value by Request.Form("choice")
putting all together under a form and submit button.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On