Visual Basic (Declaration) | |
---|---|
Public Property DynamicValidation As Boolean |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As LiveImage Dim value As Boolean instance.DynamicValidation = value value = instance.DynamicValidation |
C# | |
---|---|
public bool DynamicValidation {get; set;} |
Property Value
A bool determining whether or not validation code is rendered in initial Page load. The default value is false.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.
Target Platforms: Microsoft .NET Framework 2.0