custom error pages - which one is better: CustomErrors in web.config or application_error? -


i'm trapping 404 errors in mvc website. have option either via adding customerrors element in web.config or application_error, don't know 1 better. difference between two?

i'd recommend use application_error approach. way can log 404'd request data, in way can generate future reports. afaik, if redirect request using web.config settings, lose info.


Comments

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

How can I fetch data from a web server in an android application? -

jquery - How can I dynamically add a browser tab? -