แก้ไข

แชร์ผ่าน


RangeValidator.MinimumValue Property

Definition

Gets or sets the value of the control that you are validating, which must be greater 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 ^ MinimumValue { System::String ^ get(); void set(System::String ^ value); };
[System.ComponentModel.Bindable(true)]
public string MinimumValue { get; set; }
[<System.ComponentModel.Bindable(true)>]
member this.MinimumValue : string with get, set
Public Property MinimumValue As String

Property Value

The minimum value of the range to validate against.

Attributes

Examples

The following 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