This question is locked. New answers and comments are not allowed.
I'm hoping you can help. In MVC2, I have a view with a grid that is set up with GridEditMode.PopUp and DataBinding with .Update("UpdateAction", "CntrllerNm"). An EditorTemplate is established. I have a partial class of the model set up with annotations for validation. The controller is set up like this:
public ActionResult UpdateAction(ModelType myModel) { If (ModelState.IsValid) { //Update and Save return View(new GridModel(...)); } else { return View(myModel); } }If I enter valid values, update, save, and return occur with no trouble.
If I enter invalid values, return View(myModel) fails with an InvalidOperationException stating the view 'UpdateAction' or its master was not found. The following locations were searched:
~/Views/UpdateAction.aspx
~/Views/UpdateAction.ascx
~/Views/Shared/UpdateAction.aspx
~/Views/Shared/UpdateAction.ascx...
Can someoene tell me what I'm doing wrong?
Thanks