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

Recommended Answers

All 3 Replies

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.

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?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.