asp net mvc client validation with partial views and AJAX

Posted by griZZZly8 on Stack Overflow See other posts from Stack Overflow or by griZZZly8
Published on 2010-04-19T11:50:47Z Indexed on 2010/04/19 11:53 UTC
Read the original article Hit count: 233

Filed under:
|
|
|

Hello,

I'm using client validation function of the MVC 2.0 framework (with Html.ValidationMessageFor() and Html.EnableClientValidation())

Everything is nice, when I use the validation in a simple form.

But when I get this form via jQuery AJAX

$.get('PathToMyForm', function(htmlResult) {
    $('selector').html(htmlResult);
});

client validation doesn't works.

© Stack Overflow or respective owner

Related posts about asp.net-mvc

Related posts about validation