16 February 2014

Validation Summary-Validation Controls

         ASP.NET has provided an additional control that complements the validator controls.
The Validation Summary control is reporting control, which is used by the other validation controls on a page. 
     
       You can use this validation control to consolidate errors reporting for all the validation errors that occur on a page instead of leaving this up to each and every individual validation control.
The validation summary control will collect all the error messages of all the non-valid controls and put them in a tidy list.
 

        <asp: Validation Summary
 ID="ValidationSummary1" runat="server" 
       
 style="top: 390px; left: 44px; position: absolute; height: 38px; width: 625px" />

       Both ErrorMessage and Text properties are used to display error messages. Text error message have precedence. If you are using Validation Summary than only ErrorMessage and Text property is used.

No comments:

Post a Comment