you are using an ajax form that replaces the html of a node with the server response. if there is an error, then you need to have the error message in that response, currently you have none.
you coudl turn your form into a partial view, that is used on the main page, and returned by the post action.
bruce (sqlwo...
All-Star
37616 Points
5574 Posts
Re: ModelState.AddModelError is not being displayed inside my view
May 02, 2012 01:30 PM|LINK
you are using an ajax form that replaces the html of a node with the server response. if there is an error, then you need to have the error message in that response, currently you have none.
you coudl turn your form into a partial view, that is used on the main page, and returned by the post action.