Im using asp.net mvc with jqueryui
I have placed the default logon htlm (that comes with a new created mvc project) and placed it in a jquery modal dialog. login seems to work okay. However Im not sure how I'm meant to handle errors. I'd like it to just show up in the modal dialog...,
The modal dialog is fine when it errors if for example a required field is missing, (it shows up in the dialog)
but the LogOn action method returns View(model); if there are any errors with the authenticating the credential entered( user/password are invalid)
how can i make it so that these erros get rendered within the dialog too?