System.Web.UI.WebControls Namespace ValidationSummary Class
Sets or retrieves a value indicating whether the validation summary is displayed inline.
Inline |
<asp:validationsummary showsummary [ = true | false ] ... > |
Script |
ValidationSummary.ShowSummary [ = true | false ] |
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.
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.
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
ValidationSummary Members