Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
2
Reply
How to prevent user from redirecting to Error page in MVC 4
Mansi Gupta
May 17 2016 7:21 AM
230
Reply
I have a created a custom exception handler to handle all unhandled exceptions in MVC application and logging error details in database.
The problem is -it logs the exception but also redirects to Error page.
I want user to stay on the same view whenever error comes and some generic message should be displayed to the user like 'Error while saving data'.
I have removed defaultRedirect="Error" from below setting but still it redirects
<customErrors mode="On" ></customErrors>
How to achieve this functionality.
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
drag an image in listview
How can I use 128 Bit AES with fixed len output?