|
Subject:
|
Server.Transfer Error in ASP 3.0
|
|
Posted By:
|
Bala_M
|
Post Date:
|
11/9/2003 11:40:24 PM
|
Hi, In My Page1.asp Iam using url = "page2.asp?Id=4364" Server.Transfer(URL)
When i run the page1.asp Iam getting this error.
Server object error 'ASP 0235 : 80004005'
Server.Transfer Error
/page1.asp, line 10
Invalid URL form or fully-qualified absolute URL was used. Use relative URLs. Can anyone tell me if querystring can be passed with server.transfer in asp3.0??How can it be done?
Regards, M.Bala
M.Balasubramanian System Officer, Mumbai.
|
|
Reply By:
|
balakumar1000
|
Reply Date:
|
11/10/2003 12:45:46 AM
|
QueryString can not be passed for Server.Transfer method. You can give just the path or the .asp file name only.
Balakumar V.
|
|
Reply By:
|
rodmcleay
|
Reply Date:
|
11/10/2003 12:50:43 AM
|
I don't use server.transfer so I may be wrong but I believe that all declared and assigned variable are available on the page being transfered to, so if you declare a variable called Id and assign it the value 4364 before the transfer you should be able to use that on the new page without passing it in the querystring.
Can anyone confirm or deny this as I'm really not sure.
====================================== They say, best men are moulded out of faults, And, for the most, become much more the better For being a little bad. ======================================
|
|
Reply By:
|
balakumar1000
|
Reply Date:
|
11/10/2003 12:56:19 AM
|
Yes. Server.Transfer will maintain all of the information that you have in your calling page in the Transferred page. session variables, application variables and objects as well. Balakumar V.
|
|
Reply By:
|
Bala_M
|
Reply Date:
|
11/10/2003 1:07:49 AM
|
quote: Originally posted by Bala_M
Hi, Thanks for your immt response. How to get the values of variables declared in the Page1 in Page2 I have tried this dim Id Id="4364" url = "page2.asp" Server.Transfer(URL)
In Page 2 i tried to print the value of Id. But Iam not getting the value.?
How can I do this?
Regards, M.Bala
M.Balasubramanian System Officer, Mumbai.
|
|
Reply By:
|
balakumar1000
|
Reply Date:
|
11/10/2003 2:03:43 AM
|
Only Session Variables and Objects, Application Variables and Objects, all of the current contents for the request collections will be available to the .asp file receiving the transfer. NOT the local variables.
Balakumar V.
|
|
Reply By:
|
Bala_M
|
Reply Date:
|
11/10/2003 3:17:38 AM
|
Hi Mr.Balakumar , Thank you very much for your prompt reply. I got your point. Regards, M.Bala
M.Balasubramanian System Officer, Mumbai.
|