onexception Questions
6
I have a base controller class where I'm overriding to the Controller.OnException handler method in order to provide a generic error handling for certain types of controllers that will inherit from...
Rubicund asked 6/6, 2009 at 18:42
1
Solved
Situation is this:
I can't find a way of getting the viewModel that was passed to the POST action method.
[HttpPost]
public ActionResult Edit(SomeCoolModel viewModel)
{
// Some Exception happens...
Baneful asked 9/8, 2014 at 0:15
2
Solved
I want to handle application wide error and show a ErrorView page in asp.net mvc.
There are 3 ways to do it (or i know).
1) ErrorAttribute in BaseController:Controller class.
Can be used on indiv...
Plumule asked 11/6, 2011 at 19:36
1
Solved
I'm working on an MVC.NET 2.0 project where I'm trying to put in some special error handling logic in the OnException method of the controller. Basically I want to be able to determine the result t...
Patristic asked 6/8, 2010 at 15:25
1
© 2022 - 2024 — McMap. All rights reserved.