...

View Full Version : ASP values into query string



cube27
12-13-2006, 10:42 PM
I have a registration form for a golf tournament with an ASP dopdown with 3 options:
<asp:ListItem Value="Select one..." Selected="True">Select one...</asp:ListItem>
<asp:ListItem Value="125.00">1 player - $125</asp:ListItem>
<asp:ListItem Value="250.00">2 players - $250</asp:ListItem>
<asp:ListItem Value="375.00">3 players - $375</asp:ListItem>
<asp:ListItem Value="500.00">4 players - $500</asp:ListItem>
The info from this page is posted to a SQL server then by server.transfer is redirected to a page called receipt.aspx. Where only pertinent info is displayed. There, the option of printing this page out to submit with payment later or to pay now with PayPal.
Since this page is asp I have to go to PayPal via a query string. Is there a way to directly input the above chosen value into a query string? Thanks in advance.

otaku149
12-14-2006, 12:03 AM
Use SelectedValue something like below:

Response.Redirect("https://www.paypal.com/cgi-bin/webscr?cmd=_ext-enter&redirect_cmd=_xclick&amount=" & ListBox1.SelectedValue)

ListBox1 is the ID of your Listbox control.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum