Click here to Skip to main content
15,880,503 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
How to change the default response to a failed authorization of a controller action using Forms Authentication with MVC 2.

The default response using Forms Authentication is to bring in the Login page

What if you want to stay on the current page or display an error message (with javascript alert for example) or both, or display the message in a third page ???

Note Im using MVC2, VS2010,

I didnt find it in the site of microsoft www.asp.net\mvc

thank u in advance
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900