xVal client side reattach?

May 15, 2009 at 3:50 PM

Hello all!

 

I am trying to implement sign in form in ASP.NET MVC with AJAX authentication. The issue I am experiencing is that when my controller returns partial View, that HTML content (actually same form and error message about incorrect username and/or password) is rendered back into HTML element which contained the form, but updated form is not attached to validator.

Therefore my question is how can I reattach/reapply xVal validation after AJAX response?