Click here to Skip to main content
15,897,371 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,
I want to make validation using Model.Hi I can Validate My Page Using Model Validations Using Visual Basic.
Posted
Updated 22-Jul-15 0:20am
v2
Comments
Mukesh Pr@sad 22-Jul-15 6:51am    
HI Khushi,
If I am not wrong, you are asking about data annotations. if it is the case once visit this link.
https://msdn.microsoft.com/en-in/data/jj591583.aspx
Khushi Saraswat 24-Aug-15 4:10am    
thanks friend i got it.i need to use it.

1 solution

This is how you add validation using MVC Model (Server Side)
http://www.asp.net/mvc/overview/older-versions/getting-started-with-aspnet-mvc4/adding-validation-to-the-model[^]

and if you want to do it using JavaScript (client side) use this jQuery validation plugin:
http://jqueryvalidation.org/[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900