Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Dec 2005
    Thanked 0 Times in 0 Posts

    ASP values into query string

    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.

  • #2
    Regular Coder
    Join Date
    May 2006
    Thanked 0 Times in 0 Posts
    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.


    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts