Click here to Skip to main content
15,918,343 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am new to classic Asp, I want to send the value selected in drop down to another form through query string.

I tried as below: I tried like this <FORM method="POST"; action="Includes/bfl_forms.asp?type=S&id="&rsStates("UID")> and
<FORM method="POST"; action="Includes/bfl_forms.asp?type=S&id="&dest.options[dest.selectedIndex].value>

by the way I am populating drop down by as below :
private sub generateStateDropDownList()
temp = ""
temp = temp + ""
temp = temp + "Select a State"
rsStates.MoveFirst
Do While NOT rsStates.EOF
temp = temp + ""

Please suggest me and Thanks in advance.
Posted

1 solution

 
Share this answer
 
Comments
Rajasekhar_Raj 3-Oct-14 8:20am    
Hi Sibeesh,

I tried as below,
<FORM method="POST" action="Includes/bfl_forms.asp?type=S&id="&dest.options[dest.selectedIndex].value>
but unable to pass the value. Pls let me know if you know what is the issue.

Thanks,
Rajasekhar
[no name] 3-Oct-14 8:22am    
Instead of using id="&dest.options[dest.selectedIndex].value>, just save that to a string variable , and pass it.
[no name] 3-Oct-14 8:23am    
string strId=dest.options[dest.selectedIndex].value;
and pass
<FORM method="POST" action="Includes/bfl_forms.asp?type=S&id=strId>

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900