NumberField.Validate Method

Verifies that the value of the NumberField control, as it appears in the UI, is within the permissible range for the field.

Namespace:  Microsoft.SharePoint.WebControls
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public Overrides Sub Validate
'Usage
Dim instance As NumberField

instance.Validate()
public override void Validate()

Implements

IValidator.Validate()

Remarks

Validate verifies the value of the control in the UI, not the underlying value (which is the ItemFieldValue property of the SPFieldNumber object that has NumberField as its FieldRenderingControl property). Use Validate only when you need validation of the UI value. To validate ItemFieldValue, use GetValidatedString().

See Also

Reference

NumberField Class

NumberField Members

Microsoft.SharePoint.WebControls Namespace