Interface IClientScriptValidator
Define the properties that are required for an answeritem class
that generates client side validation code.
Assembly: SurveyProject.WebControls.dll
Syntax
public interface IClientScriptValidator
Properties
EnableValidation
Declaration
bool EnableValidation { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
JavascriptCode
Declaration
string JavascriptCode { get; set; }
Property Value
Type |
Description |
System.String |
|
JavascriptErrorMessage
Declaration
string JavascriptErrorMessage { get; set; }
Property Value
Type |
Description |
System.String |
|
JavascriptFunctionName
Declaration
string JavascriptFunctionName { get; set; }
Property Value
Type |
Description |
System.String |
|
Methods
GetControlIdToValidate()
Returns the field ID and
ensures the current control has children,
then get the field unique ID in the control tree.
Used to by parent controls to render the correct javascript
Declaration
string GetControlIdToValidate()
Returns
Type |
Description |
System.String |
|