Duration: 24 minutes
Summary: On this video, we are going to discuss the CustomValidator and the ValidationSummary controls. You can customize a validator to your needs using the CustomValidator. After setting the basic properties like other validators, you can set the OnServerValidate and the ClientValidationFunction properties to indicate the server method and the client function respectively. The ValidationSummary control displays a summary of all the validations on the page. Usually, you put this summary at the top of the page to make it easy for the user to see all the errors especially if the form is long (spanning multiple pages). The DisplayMode, HeaderText, ShowMessageBox, and ShowSummary properties are useful to setup the validation summary. When you are using the ShowMessageBox, make sure the Display mode is "None" and the EnableClientScript property set to true.
Methodology of the development of example: Good coding standard and simplified design to illustrate the key points.
Technology Used: ASP.NET and Visual Studio 2010
Keyword: ASP.NET 4, Visual Studio 2010, CustomValidator, ValidationSummary, OnServerValidate, ClientValidationFunction, ShowSummary, ShowMessageBox, EnableClientScript, DisplayMode, HeaderText