Sponsored By Aspose - File Format APIs for .NET

Aspose are the market leader of .NET APIs for file business formats – natively work with DOCX, XLSX, PPT, PDF, MSG, MPP, images formats and many more!

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.

This entry was posted in Uncategorized. Bookmark the permalink. Follow any comments here with the RSS feed for this post.

One Response to Be careful using Server.Transfer

  1. JonGalloway.ToString() says:

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>