DOTNET-WEB [Drew Marsh]: Server.Transfer in…

less than 1 minute read

DOTNET-WEB [Drew Marsh]: Server.Transfer in ASP.NET

Is there a way to pass an object reference through the request object,

or some other way, to an ASP.NET page you are transferring control to

through Server.Transfer?

Yup, by using the Items collection on the current HttpContext like so:

HttpContext.Current.Items["myKey"] = "myValue";

Updated: