does ASP works with "bla.asp?PageID=5" ?

I

Igal

(i worked with php befor)
does ASP work with this method of transferring vars from page to page
using links.
let's say i have a page called "moo.asp" and in that page i have a var
called "PageID"
now i make a link to "bla.asp" and i want to use PageID in that page.

1. can i use "bla.asp?PageID=5" ?
2. if yes, how i use the "PageID" var in "bla.asp" ?
3. Response.Write(id) ofc. didn't work =) as expected, he he...
 
B

Bob Barrows [MVP]

Igal said:
(i worked with php befor)
does ASP work with this method of transferring vars from page to page
using links.
let's say i have a page called "moo.asp" and in that page i have a var
called "PageID"
now i make a link to "bla.asp" and i want to use PageID in that page.

1. can i use "bla.asp?PageID=5" ?
2. if yes, how i use the "PageID" var in "bla.asp" ?
3. Response.Write(id) ofc. didn't work =) as expected, he he...
Yes. It's called a auerystring, and can be found in the Request object's
QueryString collection:

Response.Write Request.QueryString("PageID")
 
B

Bob Barrows [MVP]

Igal said:
(i worked with php befor)
does ASP work with this method of transferring vars from page to page
using links.
let's say i have a page called "moo.asp" and in that page i have a var
called "PageID"
now i make a link to "bla.asp" and i want to use PageID in that page.

1. can i use "bla.asp?PageID=5" ?
2. if yes, how i use the "PageID" var in "bla.asp" ?
3. Response.Write(id) ofc. didn't work =) as expected, he he...

Oh! And you can find the ASP Scripting documentation here:
http://msdn.microsoft.com/library/en-us/iissdk/html/2c40c3cf-90eb-41ca-ae2a-0ef33a651779.asp
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top