Validator Class
Defines validation tests that can be registered using the ValidationHelper.Add method.
Assembly: System.Web.WebPages (in System.Web.WebPages.dll)
The Validator type exposes the following members.
| Name | Description | |
|---|---|---|
![]() ![]() | DateTime | Defines a validation test that tests whether a value can be treated as a date/time value. |
![]() ![]() | Decimal | Defines a validation test that tests whether a value can be treated as a decimal number. |
![]() | Equals | (Inherited from Object.) |
![]() ![]() | EqualsTo | Defines a validation test that test user input against the value of another field. |
![]() | Finalize | (Inherited from Object.) |
![]() ![]() | Float | Defines a validation test that tests whether a value can be treated as a floating-point number. |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetType | (Inherited from Object.) |
![]() ![]() | Integer | Defines a validation test that tests whether a value can be treated as an integer. |
![]() | MemberwiseClone | (Inherited from Object.) |
![]() ![]() | Range(Double, Double, String) | Defines a validation test that tests whether a decimal number falls within a specific range. |
![]() ![]() | Range(Int32, Int32, String) | Defines a validation test that tests whether an integer value falls within a specific range. |
![]() ![]() | Regex | Defines a validation test that tests a value against a pattern specified as a regular expression. |
![]() ![]() | Required | Defines a validation test that tests whether a value has been provided. |
![]() ![]() | StringLength | Defines a validation test that tests the length of a string. |
![]() | ToString | (Inherited from Object.) |
![]() ![]() | Url | Defines a validation test that tests whether a value is a well-formed URL. |
Show:
.gif?cs-save-lang=1&cs-lang=jscript)
.gif?cs-save-lang=1&cs-lang=jscript)
.gif?cs-save-lang=1&cs-lang=jscript)