0

Hello Guys and Gals

I hope you can help me.

I am trying to create a bounce.asp page. When the user goes to this site page i want to pass it some data like below

http://www.testingasp.com/bounce.asp?id=12345?sub=testingme

My goal is to store the "12345" and the "testingme" in a database (The database bit I can do)

on the page load event for bounce.asp i need to store the id= and the sub= values?

How the heck do I do this?? I have looked a sessions and previouspage handlers but I cant get it to work on multiple values!!!

Any help would be great

Thanks

Alan

2
Contributors
3
Replies
4
Views
5 Years
Discussion Span
Last Post by JorgeM
0

You access your querystring paramaters like this:

Request.QueryString("id") Request.QueryString("sub")

Assign to variables so that you can use the variables in your database procedure.

0

Thanks for the reply

so if i do something like this

    Dim vID As String = Request.QueryString("id")
    Dim vSub As String = Request.QueryString("sub")

If i then return these in a messagebox i get nothing returned!!!

what am i doing wrong!!

UPDATED

I have two labels to do this test

    label1.text = Request.QueryString("id")
    label2.text = Request.QueryString("sub")

Label1 returns 12345?subject=Testingsubject

Label2 returns nothing, anyone know why its not splitting?

Edited by atr232000: Edited

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.