55 references to ValidationDataType
System.Web (35)
UI\WebControls\basecomparevalidator.cs (30)
33
DefaultValue(
ValidationDataType
.String),
36
public
ValidationDataType
Type {
39
return((o == null) ?
ValidationDataType
.String : (
ValidationDataType
)o);
42
if (value <
ValidationDataType
.String || value >
ValidationDataType
.Currency) {
78
ValidationDataType
type = Type;
79
if (type !=
ValidationDataType
.String) {
83
AddExpandoAttribute(expandoAttributeWriter, id, "type", PropertyConverter.EnumToString(typeof(
ValidationDataType
), type), false);
86
if (type ==
ValidationDataType
.Double) {
90
else if (type ==
ValidationDataType
.Currency) {
109
else if (type ==
ValidationDataType
.Date) {
129
public static bool CanConvert(string text,
ValidationDataType
type) {
134
public static bool CanConvert(string text,
ValidationDataType
type, bool cultureInvariant) {
192
protected static bool Convert(string text,
ValidationDataType
type, out object value) {
197
protected static bool Convert(string text,
ValidationDataType
type, bool cultureInvariant, out object value) {
202
case
ValidationDataType
.String:
206
case
ValidationDataType
.Integer:
210
case
ValidationDataType
.Double: {
225
case
ValidationDataType
.Date: {
242
case
ValidationDataType
.Currency: {
383
protected static bool Compare(string leftText, string rightText, ValidationCompareOperator op,
ValidationDataType
type) {
390
ValidationCompareOperator op,
ValidationDataType
type) {
404
case
ValidationDataType
.String:
408
case
ValidationDataType
.Integer:
412
case
ValidationDataType
.Double:
416
case
ValidationDataType
.Date:
420
case
ValidationDataType
.Currency:
454
if (Type ==
ValidationDataType
.Date && DateTimeFormatInfo.CurrentInfo.Calendar.GetType() != typeof(GregorianCalendar)) {
479
ValidationDataType
type) {
UI\WebControls\CompareValidator.cs (2)
149
PropertyConverter.EnumToString(typeof(
ValidationDataType
), Type),
176
bool convertDate = (Type ==
ValidationDataType
.Date && !DetermineRenderUplevel());
UI\WebControls\RangeValidator.cs (3)
119
if (Type ==
ValidationDataType
.Date &&
142
PropertyConverter.EnumToString(typeof(
ValidationDataType
), Type)
153
PropertyConverter.EnumToString(typeof(
ValidationDataType
), Type)
System.Web.DynamicData (12)
DynamicData\FieldTemplateUserControl.cs (8)
451
ValidationDataType
? dataType = null;
454
dataType =
ValidationDataType
.Date;
460
dataType =
ValidationDataType
.Integer;
467
dataType =
ValidationDataType
.Double;
472
dataType =
ValidationDataType
.Double;
504
case
ValidationDataType
.Integer:
507
case
ValidationDataType
.Double:
510
case
ValidationDataType
.String:
DynamicData\SimpleFieldTemplateUserControl.cs (4)
121
Type = column.IsInteger ?
ValidationDataType
.Integer :
ValidationDataType
.Double
131
Type = column.IsInteger ?
ValidationDataType
.Integer :
ValidationDataType
.Double
System.Web.Mobile (8)
UI\MobileControls\CompareValidator.cs (3)
99
DefaultValue(
ValidationDataType
.String),
103
public
ValidationDataType
Type
169
typeof(
ValidationDataType
), Type)
UI\MobileControls\RangeValidator.cs (5)
98
DefaultValue(
ValidationDataType
.String),
102
public
ValidationDataType
Type
137
typeof(
ValidationDataType
), Type)
149
typeof(
ValidationDataType
), Type)
183
ValidationCompareOperator op,
ValidationDataType
type)