Intersoft WebInput Documentation
OnBeforeValidate Property
See Also  Example Send Feedback
ISNet.WebUI.WebControls Namespace > FormatValidatorClientSideEvents Class : OnBeforeValidate Property






Glossary Item Box

Specifies the client side (JavaScript) function name that will be invoked before value is validated. Specifies the client side (JavaScript) function name that will be invoked before value is validated.

Syntax

Visual Basic (Declaration) 
<System.ComponentModel.DescriptionAttribute("Specifies the client side (JavaScript) function name that will be invoked before value is validated. Parameters (controlId, value)")>
<ISNet.Serialization.XmlSerializableAttribute()>
<System.ComponentModel.EditorAttribute(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="ISNet.WebUI.Design.ClientSideEventEditor, ISNet.WebUI.Design")>
<ISNet.Serialization.BinarySerializableAttribute()>
<ISNet.EventParameterAttribute("controlId, value")>
<System.ComponentModel.NotifyParentPropertyAttribute(True)>
Public Property OnBeforeValidate As System.String
Visual Basic (Usage)Copy Code
Dim instance As FormatValidatorClientSideEvents
Dim value As System.String
 
instance.OnBeforeValidate = value
 
value = instance.OnBeforeValidate
C# 
[System.ComponentModel.DescriptionAttribute("Specifies the client side (JavaScript) function name that will be invoked before value is validated. Parameters (controlId, value)")]
[ISNet.Serialization.XmlSerializableAttribute()]
[System.ComponentModel.EditorAttribute(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="ISNet.WebUI.Design.ClientSideEventEditor, ISNet.WebUI.Design")]
[ISNet.Serialization.BinarySerializableAttribute()]
[ISNet.EventParameterAttribute("controlId, value")]
[System.ComponentModel.NotifyParentPropertyAttribute(true)]
public System.string OnBeforeValidate {get; set;}
Delphi 
public read-write property OnBeforeValidate: System.String; 
JScript 
System.ComponentModel.DescriptionAttribute("Specifies the client side (JavaScript) function name that will be invoked before value is validated. Parameters (controlId, value)")
ISNet.Serialization.XmlSerializableAttribute()
System.ComponentModel.EditorAttribute(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="ISNet.WebUI.Design.ClientSideEventEditor, ISNet.WebUI.Design")
ISNet.Serialization.BinarySerializableAttribute()
ISNet.EventParameterAttribute("controlId, value")
System.ComponentModel.NotifyParentPropertyAttribute()
public function get,set OnBeforeValidate : System.String
Managed Extensions for C++ 
[System.ComponentModel.DescriptionAttribute("Specifies the client side (JavaScript) function name that will be invoked before value is validated. Parameters (controlId, value)")]
[ISNet.Serialization.XmlSerializableAttribute()]
[System.ComponentModel.EditorAttribute(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="ISNet.WebUI.Design.ClientSideEventEditor, ISNet.WebUI.Design")]
[ISNet.Serialization.BinarySerializableAttribute()]
[ISNet.EventParameterAttribute("controlId, value")]
[System.ComponentModel.NotifyParentPropertyAttribute(true)]
public: __property System.string* get_OnBeforeValidate();
public: __property void set_OnBeforeValidate( 
   System.string* value
);
C++/CLI 
[System.ComponentModel.DescriptionAttribute("Specifies the client side (JavaScript) function name that will be invoked before value is validated. Parameters (controlId, value)")]
[ISNet.Serialization.XmlSerializableAttribute()]
[System.ComponentModel.EditorAttribute(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="ISNet.WebUI.Design.ClientSideEventEditor, ISNet.WebUI.Design")]
[ISNet.Serialization.BinarySerializableAttribute()]
[ISNet.EventParameterAttribute("controlId, value")]
[System.ComponentModel.NotifyParentPropertyAttribute(true)]
public:
property System.String^ OnBeforeValidate {
   System.String^ get();
   void set (    System.String^ value);
}

Property Value

The default is null.

Remarks

Parameters :
  • controlId - string
  • value - string
Display format validates control value when value is edited, control is activated (focused) and control is deactivated (blur).
Parameters : 
  • controlId - string
  • value - string
Display format validates control value when value is edited, control is activated (focused) and control is deactivated (blur).

Example

C#Copy Code
function doBeforeValidate(controlId, value)
{
	// do some action here ...
}

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© 2013 Intersoft Solutions Corp. All Rights Reserved.