|
Posted on the 30 June 2008, by Noon Silk
I found this useful just now; maybe you might as well. If you want to share some information temporarily with the next page on a "Server.Transfer", you can use "Context.Items":
// somepage.aspx
Context.Items["hey"] = "there";
Server.Transfer("newpage.aspx?foo=y");
// ...
// newpage.aspx
string message = Context.Items["hey"] as string;
Trivial, and useful.
c#
|
comment(s) 0
|