ValidationDataType Enumeration

Specifies the validation data types used by the CompareValidator and RangeValidator controls.

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)

public enum class ValidationDataType
public enum ValidationDataType
public enum ValidationDataType

 Member nameDescription
CurrencyA monetary data type. The value is treated as a System.Decimal. However, currency and grouping symbols are still allowed. 
DateA date data type. Only numeric dates are allowed. The time portion cannot be specified. 
DoubleA double precision floating point number data type. The value is treated as a System.Double
IntegerA 32-bit signed integer data type. The value is treated as a System.Int32
StringA string data type. The value is treated as a System.String

The ValidationDataType enumeration represents the different data types that the CompareValidator and RangeValidator controls can validate. When you specify a data type for validation control and the input control being validated passes validation, the value of the input control can be parsed to the specified data type.

No code example is currently available or this language may not be supported.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

Community Additions

ADD
Show: