RangeValidator::MinimumValue Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets or sets the minimum value of the validation range.

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

property String^ MinimumValue {
	String^ get();
	void set(String^ value);

Property Value

Type: System::String^

The minimum value of the validation range. The default value is String::Empty.

Use the MinimumValue property to specify the minimum 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.


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 MaximumValue and 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 ThemeableAttribute and ASP.NET Themes and Skins.

The following example demonstrates how to use the MinimumValue property to specify the minimum value of the validation range.

System_CAPS_security Security Note

This example has a text box that accepts user input, which is a potential security threat. By default, ASP.NET Web pages validate that user input does not include script or HTML elements. For more information, see Script Exploits Overview.

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

.NET Framework
Available since 1.1
Return to top