How do I display "Not Authorized" to an authenticated user
-
Monday, February 20, 2012 1:06 AMI'm building a WEB site using VS 2010, SQL Server 2008, and .NET 4.0. I've set up users, roles, and access rules. For navigation, I'm using a tree view. If an authenticated user clicks a page on the tree view that they are not authorized to use, I want to preferably give them a "You are not authorized to see page "xxx" message or alternatively redirect them to a standard error.aspx page that would display a similar message. I have considered using Treeview trimming, but want them to know that they were intentionally denied access in case there was an administrative error in assigning them to a role or applying an Access rule. Any suggestions/ideas will be greatly appreciated............Thank you! Phil Hoop
Phil Hoop
All Replies
-
Monday, February 20, 2012 1:13 AMHi Phil, this forum is specifically dedicated to the setup and installation of Visual Studio. Please post your question on the ASP.NET forum for better help and support, thanks.
-
Monday, February 20, 2012 2:17 AMThank you, I just did as you recommended....................Phil Hoop
Phil Hoop

