(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...

Re: does ASP works with "bla.asp?PageID=5" ? by Bob

Bob
Tue Nov 07 11:08:26 CST 2006

Igal wrote:
> (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")
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.



Re: does ASP works with "bla.asp?PageID=5" ? by Bob

Bob
Tue Nov 07 11:09:22 CST 2006

Igal wrote:
> (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
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.