Working with Validation Controls:-


  1. Validation Controls are used to perform the required validations at client side.
  2. All validation Controls will run at server side.
  3. Every validation Control will return true or false to the website.
  4. If a web can contain any number of validation Controls.
  5. If all validation Controls in webpage return true then page request will be submitted to the server.
  6. If any validation Control return false then page request will not be submitted to the server.
  7. At first request of (Any Webpage) the webpage every validation Control will run at server side and equivalent Html & JavaScript code is generated and send to client .This JavaScript code will perform validations at client side.
  8. A single validation Control can be used to perform the validations for only one Control.

Types of Validation Controls:-
[1] RequiredFieldValidator
[2] RegularExpressionValidator
[3] CompareValidator
[4] RangeValidator
[5] CustomValidator
[6] Validation Summary
[7] DynamicValidator

No comments:

Post a Comment