Codesnip: Redirecting a User to a Specific Page with Forms Authentication

My new ASP Alliance article has been published:



Codesnip: Redirecting a User to a Specific Page with Forms Authentication


In most cases, when using Forms Authentication, redirecting a user to their originally requested page, or default.aspx, is the desired action. However, there may be times where you want to redirect a user to a specific page based on role membership, or to enforce a password change, or for some other reason. This codesnip will show you how to do so.


Examples are for both ASP.NET 1.1 and 2.0.  Read it at http://aspalliance.com/684.