Command.CausesValidation Property

Gets or sets whether the specified control causes server-side validation to occur on all controls on the form. The default value is true.

Namespace: System.Web.UI.MobileControls
Assembly: System.Web.Mobile (in system.web.mobile.dll)

[BindableAttribute(false)] 
public:
property bool CausesValidation {
	bool get ();
	void set (bool value);
}
/** @property */
public boolean get_CausesValidation ()

/** @property */
public void set_CausesValidation (boolean value)

public function get CausesValidation () : boolean

public function set CausesValidation (value : boolean)

Not applicable.

Property Value

true if the specified control causes server-side validation to occur on all controls on the form; otherwise, false.

For validation to occur on a form, the form must be submitted with a control that raises validation, and must have its CausesValidation property set to true. The Command control is currently the only control that raises validation.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1

Community Additions

ADD
Show: