RequiredFieldValidator.InitialValue Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the base value for the validator. The default value is null
. 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 ^ InitialValue { System::String ^ get(); void set(System::String ^ value); };
[System.ComponentModel.Bindable(true)]
public string InitialValue { get; set; }
[<System.ComponentModel.Bindable(true)>]
member this.InitialValue : string with get, set
Public Property InitialValue As String
Property Value
The base value for the validator.
- Attributes
Remarks
During validation, the validator compares a submitted value to the value of the InitialValue property. If the values are the same, the validator assumes that the value for the required field has not been filled in and reports a validation error.