System.Web.UI.WebControls.RequiredFieldValidator.InitialValue Property

Gets or sets the initial value of the associated input control.

Syntax

[System.ComponentModel.DefaultValue("")]
[System.Web.UI.Themeable(false)]
public string InitialValue { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

Use this property to specify the initial value of the input control.

Validation fails only if the value of the associated input control matches this RequiredFieldValidator.InitialValue upon losing focus.

Note:

The strings in both the RequiredFieldValidator.InitialValue property and the input control are trimmed to remove extra spaces before and after the string before validation is performed.

This property cannot be set by themes or style sheet themes. For more information, see System.Web.UI.ThemeableAttribute and ASP.NET Themes Overview.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0