views:

58

answers:

1

Hello, I have a strange problem.

while MicrosoftMvcValidation works in my mvc project, MicrosoftMvcJQueryValidation doesn't.

this is my code:

<script src="../../Scripts/MicrosoftMvcJQueryValidation.js" type="text/javascript"></script>
<script src="../../Scripts/MicrosoftMvcValidation.js" type="text/javascript"></script>

<% Html.EnableClientValidation(); %>

Thank you

A: 

I found the answer: It apears that inorder to use the asp.net mvc's client validation you have to use the labda expression text and validation formats (Html.TextBoxFor and Html.ValidationMessageFor) thank you

Gidon