PowerWEB LiveControls for ASP.NET
DynamicValidation Property
See Also  Send comments on this topic.
Dart.LiveControls Namespace > ILiveControl Interface : DynamicValidation Property



Use to inject validation code into the initial Page render.

Syntax

Visual Basic (Declaration) 
Property DynamicValidation As Boolean
Visual Basic (Usage)Copy Code
Dim instance As ILiveControl
Dim value As Boolean
 
instance.DynamicValidation = value
 
value = instance.DynamicValidation
C# 
bool DynamicValidation {get; set;}
C++/CLI 
property bool DynamicValidation {
   bool get();
   void set (    bool value);
}

Property Value

A bool determining whether or not validation code is rendered in initial Page load. The default value is false.

Remarks

Note, most scenarios do not require this property. Use this property only if (1) a control requiring validation is going to be created in a callback and (2) no other controls requiring validation are present on initial page load.

If a control requires validation, the code to perform this validation is set up in initial page load. This code includes a reference to an external script file, and a script block. However, if no control requiring validation is present on initial page load, but is created in a subsequent callback, validation is skipped because the validation script was not properly set up. Set this property to true on initial page load to create the validation script which can be used by any control created in subsequent callbacks.

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

Documentation Version 4.0.2
© 2012 Dart Communications. All Rights Reserved.