asp.net.ph

ValidationSummary.HeaderText Property

System.Web.UI.WebControls Namespace   ValidationSummary Class


Sets or retrieves the header text displayed at the top of the summary.

Syntax


Inline <asp:validationsummary displaymode = strDisplayMode ... >
Script ValidationSummary.DisplayMode [ = strDisplayMode ]

Property Value


strDisplayMode String specifying the text to display at the top of the summary.

The property is read/write with no default value.

Remarks

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.

Example

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" ... />
See Also

ValidationSummary Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph