asp.net.ph

ValidationSummary.ShowSummary Property

System.Web.UI.WebControls Namespace   ValidationSummary Class


Sets or retrieves a value indicating whether the validation summary is displayed inline.

Syntax


Inline <asp:validationsummary showsummary [ = true | false ] ... >
Script ValidationSummary.ShowSummary [ = true | false ]

Property Value

This property accepts or returns only a boolean value: true if the validation summary is to be displayed inline; otherwise, false. Default value is true.

Remarks

This property can be used in addition to the ShowMessageBox property to control where the validation summary is displayed. If this property is set to true, the validation summary is displayed on the Web page, at the location of the control.

NOTE: If both the ShowMessageBox and ShowSummary properties are set to true, the validation summary is displayed in both a message box and on the Web page.

Example

The following shows how to declaratively set the ShowSummary property of a ValidationSummary control at design time, to suppress the display of error messages on the Web page.

<asp:validationsummary runat = "server" displaymode = "singleparagraph"
   showmessagebox showsummary=false />

 Show me 

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