RangeValidator::MaximumValue Property

 

Gets or sets the value of the control that you are validating, which must be less than or equal to the value of this property. The default value is an empty string (""). This API is obsolete. For information about how to develop ASP.NET mobile applications, see the www.asp.net/mobile Web site.

Namespace:   System.Web.UI.MobileControls
Assembly:  System.Web.Mobile (in System.Web.Mobile.dll)

public:
[BindableAttribute(true)]
property String^ MaximumValue {
	String^ get();
	void set(String^ value);
}

Property Value

Type: System::String^

The maximum value of the range to validate against.

The following code example demonstrates how to use the MinimumValue property to validate a numerical value entered into a TextBox control.

System_CAPS_noteNote

The following code sample uses the single-file code model and may not work correctly if copied directly into a code-behind file. This code sample must be copied into an empty text file that has an .aspx extension. For more information, see ASP.NET Web Forms Page Code Model.

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.

.NET Framework
Available since 1.1
Return to top
Show: