System.Web.UI.WebControls Namespace ValidationSummary Class
Sets or retrieves the header text displayed at the top of the summary.
Inline |
<asp:validationsummary displaymode = strDisplayMode ... > |
Script |
ValidationSummary.DisplayMode [ = strDisplayMode ] |
strDisplayMode |
String specifying the text to display at the top of the summary. |
The property is read/write with no default value.
Use this property to display a title for the ValidationSummary control. The HeaderText is not HTML-encoded. Thus, HTML tags can be included if needed.
The following example demonstrates how to declaratively set the HeaderText property at design time, to display a title for the ValidationSummary control in bold font.
<asp:validationsummary runat = "server"
displaymode = "list"
headertext = "<b>You must enter a value in the following fields:</b>"
forecolor = "blue" ... />
ValidationSummary Members