System.Web.UI.WebControls Namespace ValidationSummary Class
Sets or retrieves a value specifying whether client-side validation is enabled for the ValidationSummary control.
Inline |
<asp:validationsummary enableclientscript [ = true | false ] ... > |
Script |
ValidationSummary.EnableClientScript [ = true | false ] |
This property accepts or returns only a boolean value: true if the ValidationSummary control is updated with client-side validation; otherwise false. Default value is true.
Validation controls always perform validation on the server. They also have complete client-side implementation that allow DHTML supported browsers ( such as Internet Explorer 4.0 and later ) to perform validation on the client.
Use this property to specify whether the ValidationSummary control updates using client-side validation.
When set to true, client-side script is rendered on the client to update the ValidationSummary control, if the browser supports that feature. When set to false, no client-side script is rendered on the client and the ValidationSummary control only updates itself on round-trips to the server. In this situation, the ShowMessageBox property has no effect.
The following shows how to declaratively set the EnableClientScript property of a ValidationSummary control at design time, to prevent the control from using client-side validation script to update itself.
<asp:validationsummary runat = "server"
displaymode = "list"
enableclientscript = false
forecolor = "blue" ... />
ValidationSummary Members