ASP.NET 2.0 ProfessionalIf you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.
You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Pls I am having a challange redirecting to a custom page when a user is not authorized to access a folder using membership and role management. How do I fix this.
Are you saying you want to redirect an unauthorized user to a page in a secured folder?
Not sure if that's wise, but anyway...
You can do this by using Server.Transfer rather than Response.Redirect. Server.Transfer performs no authentication or authorization checks, so you can send an unauthorized user anywhere you want.