I created different roles (such as Admin, Active user, User, …) in my web system. The user get Authenticated by built in ASP: log in and I’ve different folder for different user roles.
Any user group have a folder and web config page to allow or denied to access the folder’s pages.
Now my question is:
How to redirect a user from a page that not have a permission to see it, to another page like access denied.aspx page?
for more info:
I want when a “user” click on the manager’s page, it redirect to access denied.aspx page.
Note:
If exit a way to don’t show manager’s page for user group, please say that.
Put this in masterpage