Click here to Skip to main content
15,887,404 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Which Is The Best Procedure Of Validation In Asp.net
Posted

 
Share this answer
 
http://www.w3schools.com/aspnet/aspnet_refvalidationcontrols.asp[^]

check this link for the best validation in ASP.NET
 
Share this answer
 
What do you mean by best procedure? check this article to understand client side and server side validation
http://msdn.microsoft.com/en-us/library/aa479013.aspx
 
Share this answer
 
v2
Micro$oft provide an example here[^]. I usually find following the advice of the vendor of a product is a good idea.

Further advice can be found in these links[^]
 
Share this answer
 
Vague question.There is no such Best Procedure.

Validation can be done in two ways (client side or server side)
choosing client side or server side validation totally depends on the scenario

Check these links:
Understanding ASP.NET Validation Techniques[^]
http://www.programcall.com/8/aspnet/client-side-validation-vs-server-side-validation.aspx[^]
http://surajdeshpande.wordpress.com/2013/08/10/difference-between-server-side-validation-and-client-side-validation/[^]

you'll get an idea
 
Share this answer
 
v2
Hai

Try to validate ur input in client side only,this is best way to vlaidate,for this u have work more,server side validation are available,but unneccessary page need refersh u also handle datas when page refersh.So try to use client side valdiaton.

http://www.aspdotnet-suresh.com/2010/10/javascript-validations-to-validate-form.html[^]

http://www.aspdotnet-suresh.com/2010/09/validation-for-email-and-url-using-in.html[^]

the above's are some example.Try to avoid vs studio built in 6 validation control,u have to create validation in java script,jquery,use web service for validation.
 
Share this answer
 
v2
Depends on the validation you're trying to solve, whether you want to do it client-side of server-side, what kind of controls you're using, ...

There is no "best" for all situations.
 
Share this answer
 
Go for client side validation. You can use JavaScript or ASP.NET Validation Controls.

You can validate at Server side as well. So, depends upon you.
 
Share this answer
 
the best solution depends mainly on what is your requirement. Either you want client side validation or server side.

RequiredFieldValidators, Regular Expressions, JavaScript, jQuery and alot of other solutions can be tried.

But let's have a look on what I have been using and pretty satisfied with.

JQUERY Validation Engine

its a JQUERY plugin which is easy to embed and pretty awesome.


Hope it will help. :)
 
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