When you return from an AJAX request, is there a way to determine if any server-side confirmation has added any errors?
I tried
if ($('#MyForm').valid() == true)
...
in the function OnSuccess, but it is always true, regardless of whether the server-side check fails or not. Updated HTML, if it generates, puts an error on hold, so I know that checking for proper operation.
I suspect that the method valid()simply restarts client-side validation.
source
share