asp.net.ph

ValidationSummary.EnableClientScript Property

System.Web.UI.WebControls Namespace   ValidationSummary Class


Sets or retrieves a value specifying whether client-side validation is enabled for the ValidationSummary control.

Syntax


Inline <asp:validationsummary enableclientscript [ = true | false ] ... >
Script ValidationSummary.EnableClientScript [ = true | false ]

Property Value

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.

Remarks

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.

Example

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