Darrell Norton's Blog [MVP]

Sponsors

The Lounge

News

  • Darrell Norton pic

    MVP logo

    View Darrell Norton's profile on LinkedIn

    Currently Reading:

    weewar.com

Advertisement

Images in this post missing? We recently lost them in a site migration. We're working to restore these as you read this. Should you need an image in an emergency, please contact us at imagehelp@codebetter.com
Be careful using Server.Transfer

Server.Transfer bypasses the authorization for the page you redirect to.  So if you use Server.Transfer instead of Response.Redirect (for other pros and cons of each see this article on managing navigation in ASP.NET by the excellent Mike Gunderloy), make sure that the authorization to access the target page is performed before the call to Server.Transfer.  If you use Response.Redirect, you do not have to worry about this.  Yet another reason why I almost always use Response.Redirect.


Posted 08-26-2003 8:07 PM by Darrell Norton

[Advertisement]

Comments

JonGalloway.ToString() wrote re: Server.Transfer vs. Response.Redirect
on 07-21-2004 2:42 AM