BaseNumberField.ValidateNumber Method

Verifies that the value of the BaseNumberField, as it appears in the UI, is between two specified values, inclusive.

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

Syntax

'Declaration
Protected Sub ValidateNumber ( _
    minValue As Double, _
    maxValue As Double _
)
'Usage
Dim minValue As Double
Dim maxValue As Double

Me.ValidateNumber(minValue, maxValue)
protected void ValidateNumber(
    double minValue,
    double maxValue
)

Parameters

  • minValue
    Type: System.Double

    The minimum permissible value for the field.

  • maxValue
    Type: System.Double

    The maximum permissible value for the field.

Remarks

The field's value must be greater than or equal to minValue and less than or equal to maxValue.

See Also

Reference

BaseNumberField Class

BaseNumberField Members

Microsoft.SharePoint.WebControls Namespace