1.

How we can handle the exception at controller level in ASP.Net MVC?

Answer»

Exception Handling is made simple in ASP.Net MVC and it can be done by just overriding "OnException" and set the result property of the filtercontext object (as shown below) to the view detail, which is to be returned in case of exception.

protected overrides void OnException(ExceptionContext filterContext)    {    }


Discussion

No Comment Found