Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Validator Class

Defines validation tests that can be registered using the ValidationHelper.Add method.

System.Object
  System.Web.WebPages.Validator

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

public abstract class Validator

The Validator type exposes the following members.

  NameDescription
Protected methodValidatorInitializes a new instance of the Validator class.
Top

  NameDescription
Public methodStatic memberDateTimeDefines a validation test that tests whether a value can be treated as a date/time value.
Public methodStatic memberDecimalDefines a validation test that tests whether a value can be treated as a decimal number.
Public methodEquals (Inherited from Object.)
Public methodStatic memberEqualsToDefines a validation test that test user input against the value of another field.
Protected methodFinalize (Inherited from Object.)
Public methodStatic memberFloatDefines a validation test that tests whether a value can be treated as a floating-point number.
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodStatic memberIntegerDefines a validation test that tests whether a value can be treated as an integer.
Protected methodMemberwiseClone (Inherited from Object.)
Public methodStatic memberRange(Double, Double, String)Defines a validation test that tests whether a decimal number falls within a specific range.
Public methodStatic memberRange(Int32, Int32, String)Defines a validation test that tests whether an integer value falls within a specific range.
Public methodStatic memberRegexDefines a validation test that tests a value against a pattern specified as a regular expression.
Public methodStatic memberRequiredDefines a validation test that tests whether a value has been provided.
Public methodStatic memberStringLengthDefines a validation test that tests the length of a string.
Public methodToString (Inherited from Object.)
Public methodStatic memberUrlDefines a validation test that tests whether a value is a well-formed URL.
Top

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft