HeaderText Property
Collapse the table of content
Expand the table of content

ValidationSummary.HeaderText Property

Gets or sets the text that will appear in the heading section of the validation summary page. The default value is Empty. This API is obsolete. For information about how to develop ASP.NET mobile applications, see the www.asp.net/mobile Web site.

Namespace:  System.Web.UI.MobileControls
Assembly:  System.Web.Mobile (in System.Web.Mobile.dll)

public string HeaderText { get; set; }
<asp:ValidationSummary HeaderText="String" />

Property Value

Type: System.String
The text that will appear in the heading section of the validation summary page.

If you are developing in HTML, the ValidationSummary page renders the value of the HeaderText property first. When the validation process invalidates a form, it produces a list of ErrorMessage properties for each validator. Each instance of an ErrorMessage property in the list results in an error on the invalid form. This list of errors is followed by a Link that targets the invalid form. The text of the link is the value of the BackLabel property.

The display of errors for WML 1.1 is similar to HTML, except that the HeaderText property is displayed as plain WML text followed by each error message and preceded by "- " (a hyphen followed by a space).

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0, 1.1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Community Additions

© 2016 Microsoft