Tech
Forums
Jobs
Books
Events
Videos
Conference
Annual Conference
Bcrypt
Ai Conference
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
1
Reply
Custom error page when accessing unauthorized page
Ask a question
Ask a question
Upload Source Code:
Select only zip and rar file.
koneruvijay
20y
2.2k
1
Reply
Iam using forms authentication along with role-based authorization in my web app. The problem Iam having is that when User1 who is already authenticated tries to access the page in the folder (HR) which is not authorized for, User1 is kicked back to login page instead of custom error page. Why does asp.net do this ? Is there any workaround to show custom error page to unauthorized users ? Thanks in advance. My web.config file is as follows.
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
Looking for a reusable class to clear all objects on a web form.
choosing user controls dynamically at runtime