ASP.Net WebForm Validation Summary logo
ASP.NET Basics
ASP.Net Introduction
ASP.NET - Introduction
ASP.NET - Environment Setup
ASP.NET - Basic Controls
ASP.Net Button
ASP.Net RadioButton
ASP.Net Textbox
ASP.Net Label
ASP.NET - Client Side
ASP.NET - Server Side
ASP.NET - Ad Rotator
ASP.Net Hyperlink
ASP.NET - Calendars
ASP.NET - Life Cycle
ASP.NET - Debugging
ASP.Net Session
ASP.Net LinkButton
ASP.Net DropDownList
ASP.NET - Data Binding
ASP.Net Calender
ASP.Net Checkbox
ASP.NET - Multi Threading
ASP.Net Tutorial
ASP.NET - File Uploading
ASP.Net Upload Multiple Files
ASP.Net Cookie
ASP.NET - Quick Guide
ASP.NET - Data Caching
ASP.NET Useful Resources
ASP.NET - Multi Views
ASP.NET - Panel Controls
ASP.NET - Deployment
ASP.Net DataGrid
ASP.Net WebForm User Registration
ASP.NET - Security
ASP.Net Action Filters
ASP.NET - Error Handling
ASP.Net Fileuplaod
ASP.NET - Data Sources
ASP.NET - Validators
ASP.NET - Ajax Control
ASP.NET Tutorial in PDF
ASP.NET - Directives
ASP.Net DataList
ASP.NET - Custom Controls
ASP.NET - Configuration
ASP.Net WebForm Validation Summary
ASP.NET - Server Controls
ASP.NET - Managing State
ASP.NET - Event Handling
Learn ASP.Net Tutorial
ASP.Net Server Controls
ASP.NET - Database Access
ASP.NET - Web Services
ASP.NET - Personalization
ASP.Net Life Cycle
Discuss ASP.NET
ASP.Net Download File
ASP.NET Basics
Previous : ASP.NET - Configuration Next : ASP.NET - Server Controls

ASP.Net WebForm Validation Summary

This validator is used to display list of all validation errors in the web form.

It allows us to summarize the error messages at a single location.

We can set DisplayMode property to display error messages as a list, bullet list or single paragraph.

ValidationSummary Properties

This control has following properties.

Property Description
AccessKey It is used to set keyboard shortcut for the control.
BackColor It is used to set background color of the control.
BorderColor It is used to set border color of the control.
Font It is used to set font for the control text.
ForeColor It is used to set color of the control text.
Text It is used to set text to be shown for the control.
ToolTip It displays the text when mouse is over the control.
Visible To set visibility of control on the form.
Height It is used to set height of the control.
Width It is used to set width of the control.
ShowMessageBox It displays a message box on error in up-level browsers.
ShowSummary It is used to show summary text on the form page.
ShowValidationErrors It is used to set whether the validation summary should be shown or not.


The following example explains how to use ValidationSummery control in the application.

// ValidationSummeryDemo.aspx


It produces the following output when view in the browser.

ASP Validation
summary 1

It throws error summary when user login without credentials.

ASP Validation
summary 2
Previous : ASP.NET - Configuration Next : ASP.NET - Server Controls
© Copyright 2018 W3Hello Publishing Limited. All rights reserved.
Contact us | Sitemap