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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
MSWeb DeveloperPosted May 11, 2015, 6:30 AM
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
Manoj BhoirPosted May 8, 2015, 12:11 PM
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/
Dipankar BiswasPosted May 8, 2015, 10:20 AM
see..http://www.c-sharpcorner.com/UploadFile/puranindia/validation-controls-in-Asp-Net/