Hello All.......
I am new in Asp.Net Web development.........Can we use Validation code as a reusable component?........can somebody give me a sample code snippet for this?
Thank You in advance.
Regards
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Dipankar BiswasRank #992 · 2K reputationPosted May 8, 2015, 6:20 AM EDT
see..http://www.c-sharpcorner.com/UploadFile/puranindia/validation-controls-in-Asp-Net/
Manoj BhoirRank #599 · 4K reputationPosted May 8, 2015, 8:11 AM EDT
ASP.NET validation controls validate the user input data to ensure that useless, unauthenticated, or contradictory data don't get stored.
Please check these links :
Validating ASP.NET Server Controls
https://msdn.microsoft.com/en-us/library/aa479013.aspx
ASP.NET - Validators
http://www.tutorialspoint.com/asp.net/asp.net_validators.htm
Understanding ASP.NET Validation Techniques
http://www.codeproject.com/Articles/334310/Understanding-ASP-NET-Validation-Techniques
If you want to use something new with client side basic validation check this
jQuery Validation Plugin to Validate Web Forms
http://www.c-sharpcorner.com/UploadFile/0cefc4/jquery-validation-plugin/
MSWeb Developer61 reputationPosted May 11, 2015, 2:30 AM EDT
Thanks for responding Dipankar & Manoj.
I know how to do validation, but my question is can I make some generalized library or user control in turn a reusable component any way, using which i just need to pass the control to validate as a parameter & validate it & thus it will be helpful to me for all my projects?
Thanks.
Regards