Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post May 10, 2012 03:25 PM by bruce (sqlwork.com)
May 10, 2012 01:48 PM|LINK
Could anyone please suggest me about the best practice of handling the exception in asp.net MVC3 Razor engine.
if you can share any links or code snippets it would be very much helpful for me.
May 10, 2012 02:29 PM|LINK
global asax, application_error.
May 10, 2012 03:25 PM|LINK
your logic should be in the controller. there should be no planed exceptions in the view. don't pass queries to a view, which causes the sql query to run in the view, alwas run the query in the view (use ToList()).