开发者

Scope of HttpContext.Current.Items

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜