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.
Assembly: System.Web.Mobile (in System.Web.Mobile.dll)
public: [BindableAttribute(true)] property String^ MaximumValue { String^ get(); void set(String^ value); }
The following code example demonstrates how to use the MinimumValue property to validate a numerical value entered into a TextBox control.
Note |
|---|
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. |
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. |
Available since 1.1
BaseValidator
RangeValidator Class
System.Web.UI.MobileControls Namespace
Introduction to the RangeValidator Control

