RequiredFieldValidator.InitialValue Property

Gets or sets the base value for the validator. The default value is a null reference (Nothing in Visual Basic).

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

[BindableAttribute(true)] 
public:
property String^ InitialValue {
	String^ get ();
	void set (String^ value);
}
/** @property */
public String get_InitialValue ()

/** @property */
public void set_InitialValue (String value)

public function get InitialValue () : String

public function set InitialValue (value : String)

Property Value

The base value for the validator.

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.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1

Community Additions

ADD
Show: