1. C R E AT E D B Y: R A H U L L AVA D I YA
INTRODUCTION TO VALIDATION
2. INDEX
Sr No. Topic
1 Introduction to Validation
2 Types of Validation
3 Different Type of validation Control
3. WHAT IS VALIDATION
User’s input must always be validated before sending across
different layer of the application.
Use of Validation
Implement presentation logic
To validate user input data
Data format , data type and data range is used for
validation
4. TYPES OF VALIDATION
They are two types of Validation
Client Side validation
Server Side Validation
5. CLIENT SIDE VALIDATION
checking of data is done at client.
Developing client side validation is fast response to the
client.
If some of the validations are done at client end , web site
response become.
6. SERVER SIDE VALIDATION
oServer Validation is done at server end.
oChecking the data of client side
oServer Side validation is done using database programing
tools.
7. TYPES OF VALIDATION CONTROLS
1) RequiredFieldValidation Control
2) CompareValidator Control
3) RangeValidator Control
4) RegulatorExpressionValidator Control
5) CustomValidator Control
6) ValidationSummery
8. REQURED FIELD VALIDATION
oThe RequiredFieldValidator is used to some value must be
entered for particular control.
Example
oUser name or Password can’t be blank.
oCity Name must be selected from dropdown list.
oFile must be selected using File Upload Control.
9. COMPARE VALIDATOR
oThe compare Validator control compares a value in one
control with a fixed value or a value in another control.
Example
Check Password and Confirm Password.
10. RANGE VALIDATOR
oThe Range Validator control enables you to check whether
the value of form field falls between a certain minimum and
maximum value.
Example
Age must maximum value is 85 and minimum value is 18.
11. REGULAR EXPRESSION VALIDATOR
oThe Regular Expression Validator control is check the
value of a control against specified expression.
oIf use the this control you must be use the Characters
oi.e. w-use for any word character
Example
To input no.in format.i.e.+91-9662796943
To input zip code which must be digits only.i.e.360311
12. CUSTOM VALIDATOR CONTROL
• Custom Validator allows writing application specific
CUSTOM validation routines for both the client side and
server side validation.
13. VALIDATION SUMMERY
does not perform any validation page but shows a summery
all of all errors in the
Properties
1) ShowSummery : Show the error messages in specific
format.
2) ShowMessageBox : Shows the error in the error
messages in a specific window.