Click to See Complete Forum and Search --> : reading a quesrystring from another page!
pelegk1
08-11-2003, 04:11 AM
i have page which load another asp page into it
i want the second page that is being loaded to read the params that the loading page hase recived from the url!
is it possible?
then how?
10X:)
peleg
karlmcauley
08-11-2003, 04:53 AM
You have already been given the answer to your question in the link below:
http://forums.webdeveloper.com/showthread.php?s=&threadid=15151
But just in case you are confused if you wanted to retrieve the threadid parameter in another page and store it into a variable for later use all you have to do is:
myvariable = Request.QueryString("threadid")
Then to test it you can simply response.write myvariable on the page that the parameter is being passed to.
Hope this helps.
rdoekes
08-11-2003, 02:23 PM
If you use IIS 5.0, then with the Server.Execute method you are able to call asp pages within an asp page.
The nice part about this Server.Execute method, is that the request collections (Form, Querystring) are visible and usuable in the executed page.
However, to my knowlegde it is not possible to call an asp page with a querystring in the Server.Execute. so Server.Execute("test.asp?q1=10&q2=abs") is not possible