i have as asp.net-mvc website and we are migrated a popup from using PartialView() on the server to just return Json() response (and do the bindings on the client side). In this case, it seems about 10 times faster which is great.
the one issue i ran into is that the existing code leveraged ModelState alot for validation and UI highlighting of issues.
Is there a suggested way to do validation if i am now just recieving Json() responses from the server.
in particular: 1. what is the preferred way to returning ModelState Errors to the Gui (and get the same red highlighting and binding that you get out of the box with asp.net-mvc modelstate. 2. Should i still use modelstate or ditch it for another complete solution. 3. anything else to worry about during this migration.