Set a ModelState to an ActionResult in ASP.Net MVC

Posted by Marco on Stack Overflow See other posts from Stack Overflow or by Marco
Published on 2010-06-10T11:35:19Z Indexed on 2010/06/10 11:42 UTC
Read the original article Hit count: 213

Filed under:

Hi,

In a View, I've created a <form> that posts some data to another Controller, which is different from that one that redirected me to the View. In this second controller, i perform some data validations and then, if errors are found, I need to redirect the user again to the source View but with the edited ModelState (so that i can show the validation errors).

Any tips?

© Stack Overflow or respective owner

Related posts about asp.net-mvc