System.Web.UI.WebControls.RangeValidator.MaximumValue Property

Gets or sets the maximum value of the validation range.

Syntax

[System.ComponentModel.DefaultValue("")]
[System.Web.UI.Themeable(false)]
public string MaximumValue { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

Use the RangeValidator.MaximumValue property to specify the maximum value of the validation range. If the value specified by this property fails to convert to the data type specified by the BaseCompareValidator.Type property, an exception is thrown.

Note:

If you specify ValidationDataType.Date for the BaseCompareValidator.Type property without programmatically setting the culture for the application, you should use a culture-neutral format, such as YYYY/MM/DD, for the RangeValidator.MaximumValue and RangeValidator.MinimumValue properties. Otherwise, the date may not be interpreted correctly.

This property cannot be set by themes or style sheet themes. For more information, see System.Web.UI.ThemeableAttribute and ASP.NET Themes Overview.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0