Asp. NET validation control--requiredfieldvalidator

Source: Internet
Author: User
Tags unique id

Control Name: RequiredFieldValidator

Property:

1. Background color of Backcolor:rangevalidator controls

2. ControlToValidate: The ID of the control to validate

3. Display: Verify that the control displays behavior.

The valid values are:

  • None-Verify that messages are never displayed inline.
  • Static-Allocates space in the page layout to display the validation message.
  • dynamic-if validation fails, the space used to display the validation message is dynamically added to the page.

4. EnableClientScript: Boolean value that specifies whether client-side validation is enabled.

5, Enabled: Boolean value that specifies whether the validation control is enabled.

6, ErrorMessage:

The text that is displayed in the ValidationSummary control when validation fails.

Note: If you do not set the Text property, it will also appear in the validation control.

7. ForeColor: The foreground color of the control.

8. ID: The unique ID of the control.

9. InitialValue: Specifies the initial value (starting value) of the input control. The default is "".

10, IsValid: Boolean value indicating whether the associated input control passed validation.

11, Runat: Specifies that the control is a server control. Must be set to "server".

12. Text: The message that is displayed when validation fails.

Asp. NET validation control--requiredfieldvalidator

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.