ASP.Net Validation Control Examples. Just check the code below
Some note
- RequiredFieldValidator: is used to check that a field is filled up
- CompareValidator: Compare the value of a field with another field or data
- RangeValidator: Compares the data is within a given range
- RegularExpressionValidator: Domain name syntax, email addtress syntax
- ValidationSummary: Display all validation errors in a summary box
- CompareValidator: Write your own custom validation rules and display the outcome
- Remember
- You can display error on the side of the control
- You can display error under the control
- The example used both just for example
- The Text property is the output that comes just where the validation control is placed. ErrorMessage propert is for the ValidationSummary
- If you just want the Validation Summary output, use Display=”none” for the validation control (not the summarycontrol) itself
- the code can be seen at http://salearningschool.com/samples/validate.txt as well
Validation Control
From: http://sitestree.com/?p=5304
Categories:19
Tags:
Post Data:2009-06-06 19:26:04
Shop Online: <a href='https://www.ShopForSoul.com/' target='new' rel="noopener">https://www.ShopForSoul.com/</a>
(Big Data, Cloud, Security, Machine Learning): Courses: <a href='http://Training.SitesTree.com' target='new' rel="noopener"> http://Training.SitesTree.com</a>
In Bengali: <a href='http://Bangla.SaLearningSchool.com' target='new' rel="noopener">http://Bangla.SaLearningSchool.com</a>
<a href='http://SitesTree.com' target='new' rel="noopener">http://SitesTree.com</a>
8112223 Canada Inc./JustEtc: <a href='http://JustEtc.net' target='new' rel="noopener">http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning) </a>
Shop Online: <a href='https://www.ShopForSoul.com'> https://www.ShopForSoul.com/</a>
Medium: <a href='https://medium.com/@SayedAhmedCanada' target='new' rel="noopener"> https://medium.com/@SayedAhmedCanada </a>