Επεξεργασία

Κοινή χρήση μέσω


RangeValidator.MaximumValue Property

Definition

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 Mobile Apps & Sites with ASP.NET.

public:
 property System::String ^ MaximumValue { System::String ^ get(); void set(System::String ^ value); };
[System.ComponentModel.Bindable(true)]
public string MaximumValue { get; set; }
[<System.ComponentModel.Bindable(true)>]
member this.MaximumValue : string with get, set
Public Property MaximumValue As String

Property Value

The maximum value of the range to validate against.

Attributes

Examples

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.

Important

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.

Applies to

See also