tags:

views:

168

answers:

2

Are the HttpContext.Current.Items lost when a Server.Transfer(); occurs?

If so what is the best way for me to send information to another page without going through the Session?

+1  A: 

You can access Page.PreviousPage property with all data on it when using Server.Transfer(). And also yes, context would be valid.

Restuta
would the context still be valid or would a new context have been built for the call ?
Alexandre Brisebois
Sorry, look at my edited answer.
Restuta
+1  A: 

Yes, the context would still be valid. It would become invalid or break if you use Response.Redirect().

See article The HttpContext Items Collection

jlech
Great reference!
Alexandre Brisebois
Glad I was able to be of some assistance!
jlech