How to invoke Form Validation Javascript methods before submitting ASP.NET MVC view?
-
Found many answers regarding my Query but all of them are using MicrosoftMvcJQueryValidation.js. I am using Jquery version 1.4.4 .. Dont know if it is compatible with MicrosoftMvcJQueryValidation.js...I cannt find Form.Validate() method .. it is coming out to be null and giving me an errorAshes– Ashes2011-08-05 12:21:49 +00:00Commented Aug 5, 2011 at 12:21
Add a comment
|
1 Answer
this is guide to client side validation.
http://weblogs.asp.net/scottgu/archive/2010/01/15/asp-net-mvc-2-model-validation.aspx
and when you complete the file check what is generated for you. this will be nice start for you.
hope this helps.
2 Comments
Ashes
Explanation given in above link also uses MicrosoftMvcJQueryValidation.js so it is not going to be useful for me ....
cpoDesign
This has all the relevant java script in there generated and this could be base on how to do this... check following link: stackoverflow.com/questions/61456/mvc-net-jquery-validation