Export (0) Print
Expand All

Validator.Range Method (Int32, Int32, String)

Defines a validation test that tests whether an integer value falls within a specific range.

Namespace:  System.Web.WebPages
Assembly:  System.Web.WebPages (in System.Web.WebPages.dll)

public static IValidator Range(
	int minValue,
	int maxValue,
	string errorMessage
)

Parameters

minValue
Type: System.Int32
The minimum value. The default is 0.
maxValue
Type: System.Int32
The maximum value.
errorMessage
Type: System.String
The error message to display if validation fails.

Return Value

Type: System.Web.WebPages.IValidator
The validation test.
Show:
© 2014 Microsoft