asp.net.ph

RequiredFieldValidator.InitialValue Property

System.Web.UI.WebControls Namespace   RequiredFieldValidator Class


Sets or retrieves the initial value of the associated input control.

Syntax


Inline <asp:requiredfieldvalidator initialvalue = strValue ... >
Script RequiredFieldValidator.InitialValue = strValue

Property Value


strValue String specifying the initial value of the associated input control.

The property is read/write with no default value.

Remarks

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

Validation fails if, and only if, the value of the associated input control matches this InitialValue.

NOTE: The string in both the InitialValue property and the input control are both trimmed to removed extra spaces before and after the string before validation is performed.

See Also

RequiredFieldValidator Members   Validating Required Entries Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph