Szerkesztés

Megosztás a következőn keresztül:


ValidationSummary.HeaderText Property

Definition

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 Mobile Apps & Sites with ASP.NET.

public:
 property System::String ^ HeaderText { System::String ^ get(); void set(System::String ^ value); };
[System.ComponentModel.Bindable(true)]
public string HeaderText { get; set; }
[<System.ComponentModel.Bindable(true)>]
member this.HeaderText : string with get, set
Public Property HeaderText As String

Property Value

The text that will appear in the heading section of the validation summary page.

Attributes

Remarks

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).

Applies to

See also