Page 126 - Programming VB.NET
P. 126

120                                 Chapter 11: Web Page

               CustomValidator            Checks the user's entry using
                                          validation logic that you code

                                          yourself. This type of
                                          validation allows you to check
                                          for values derived at run time.


               ValidationSummary          Displays the validation errors

                                          in summary form for all of the
                                          validators on a page.




               11.3.1 Apply Validation Control In A Web Form

               Add RequiredFieldValidator to a web form as shown in

               Figure 11.6. Set the properties as shown in Table11.4.










                    Figure 11.6 Required Field Validator Control
   121   122   123   124   125   126   127   128   129   130