System.Web.UI.WebControls Namespace RequiredFieldValidator Class
Sets or retrieves the initial value of the associated input control.
Inline |
<asp:requiredfieldvalidator initialvalue = strValue ... > |
Script |
RequiredFieldValidator.InitialValue = strValue |
strValue |
String specifying the initial value of the associated input control. |
The property is read/write with no default value.
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.
RequiredFieldValidator Members Validating Required Entries