<customErrors mode="On"> <error statusCode="401" redirect="~/Home/SecureMethod"/>
[Authorize] public ActionResult SecureMethod() { return View(); }
@{ ViewBag.Title = "SecureMethod"; } <h2>You are not authorized to view this page...please contact admin!!</h2>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)