8 ) Validation Control (Require Field vaidatore , Range Validatore , Regular expression , Compare validatore)
* Validatore Controle *
- Accepting only correct data
There are two types of Validation Controle
- Client side validation
- Server side validation
All types of validation of controle is called server side controle.
Server Side Validation
4 Types of validatore controle
- Require Field Validatore Control
- Range Validatore Control
- Regular Expression Control
- Compare Validation Control
1 ) Require Field Validatore Control
Properties :- 1) Error Massage
2) Controle 2 Validate
design : textbox, validatore controle
Step :- Add textbox---validator category---requirefield validatore---require validatore
propertieschange 1) Errormsg :- informationsubmitecompulsory 2) Controle2Valid = select tool Textbox1...
Output ::--blank jagah pe click krne par error msg dega
2 ) Range Validatore Control
- Set the specific range given data.
Properties :- 1) Error Massage
2) Controle 2 Validate
3) Min value / Minimum value
4) Maximum Value
Design :- Textbox , Range validator control
Step :- Add textbox---validator category--- add Range validatore controle in tools--- range validatore properties change 1) Errormsg:- input age between 18 to 35 2) Controle2Valid:- select Textbox... 3) Minimum value:- 18 4)MAximum Value:- 35
Output :- Minimum value 18 and Maximum value 35 isse kam ya jyada value add krne par error dega
3 ) Regular Expression Validatore
- It check the Continivity of data
Properties :- 1) Error Massage
2) Control 2 Validate
3) Regular expression / Validation expression
Design :- Textbox , Regular Expression control
Step :- Add textbox---validator category--- add Range validatore controle in tools--- range validatore properties change 1) Errormsg:- Invaliedmobileno 2) Controle2Validation:- select Textbox... 3) Regular Expression:- \d{10}
Output:- only accept 10 digit no
4 ) Compare Validatore Control
Properties:- 1) Error Massage
2) Control 2 Validate
3) Controle 2 Compare
Design :- Textbox1 , Textbox2 , Compare validator control
Step :- Add textbox---validator category--- add Range validatore controle in tools--- range validatore properties change 1) Errormsg:- Password dos't match 2) Controle2Validation:- select Textbox1... 3) Controle 2 Compare:- select Textbox2
All validation controle
* How to activate js using C# ?
:- Response.Write("<script language='JavaScript'>alert('welcome');</script>") ;
Comments
Post a Comment