开发者

Scope of HttpContext.Current.Items

开发者 https://www.devze.com 2022-12-08 21:30 出处:网络
Are the HttpContext.Current.Items lost when a Server.Transfer(); occurs? If so wha开发者_StackOverflowt is the best way for me to send information to another page

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

If so wha开发者_StackOverflowt is the best way for me to send information to another page without going through the Session?


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

See article The HttpContext Items Collection


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

0

精彩评论

暂无评论...
验证码 换一张
取 消