Hi!
I'm creating a website in ASP.NET MVC and have stumbled across something I really can't figure out.
I've got a user profile page that allows a user to change his password. On the serverside, I want to validate that the user has entered a correct "current" password before allowing the change.
What's the best way to return to my View when the password isn't correct? I've tried using ModelState.AddModelError and then return Json(View()) but I can't see the error message anywhere in the JSON object returned to the browser.
What's the best way to do this using jquery on the client?
/Jesper