Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: Response.Redirect


Message #1 by "J Donahue" <jdonahue@f...> on Thu, 23 May 2002 21:00:39
I tried to use "Response.Redirect(Request.ApplicationPath)" in the 
Global.asax file but I get the following error: "Response is not 
available in this context."  Am I prohibited from using Response.Redirect 
in the global file?  thanks!!!
Message #2 by "Minh T. Nguyen" <nguyentriminh@y...> on Thu, 23 May 2002 13:03:04 -0700
Jim,

	The Response object often doesn't make sense in the Global asax,
as the Response object should be associated with a particular HTTP
response, which is not the case of the Global asax. Use Server.Transfer
instead. I used it to transfer people to my error page on any Session
error.

Minh.

-----Original Message-----
From: J Donahue [mailto:jdonahue@f...] 
Sent: Thursday, May 23, 2002 9:01 PM
To: ASP+
Subject: [aspx] Response.Redirect


I tried to use "Response.Redirect(Request.ApplicationPath)" in the 
Global.asax file but I get the following error: "Response is not 
available in this context."  Am I prohibited from using
Response.Redirect 
in the global file?  thanks!!!

Message #3 by "JAMES DONAHUE" <JDONAHUE@F...> on Fri, 24 May 2002 09:13:38 -0600
Thanks Minh!!!!

>>> nguyentriminh@y... 05/23 2:03 PM >>>
Jim,

	The Response object often doesn't make sense in the Global
asax,
as the Response object should be associated with a particular HTTP
response, which is not the case of the Global asax. Use
Server.Transfer
instead. I used it to transfer people to my error page on any Session
error.

Minh.

-----Original Message-----
From: J Donahue [mailto:jdonahue@f...] 
Sent: Thursday, May 23, 2002 9:01 PM
To: ASP+
Subject: [aspx] Response.Redirect


I tried to use "Response.Redirect(Request.ApplicationPath)" in the 
Global.asax file but I get the following error: "Response is not 
available in this context."  Am I prohibited from using
Response.Redirect 
in the global file?  thanks!!!



  Return to Index