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 
  1.      Client side validation
  2.      Server side validation
   All types of validation of controle is called server side controle.
   
    Server Side Validation
  •    Def :- In this concept we have to use validation control.

   4 Types of validatore controle 
  1.   Require Field Validatore Control
  2.   Range Validatore Control
  3.   Regular Expression Control
  4.  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

Popular posts from this blog

DATA CONTROL ( Gridview , Repeater , Formview , DataList , Detailsview , Listview )

Z 5 ) MVC (Model view Controller)

Z 8 ) MVC HTMLHELPER METHOD AND ACTIONLINK (how to use css ,atrributes,style in css)