HtmlReadOnly and Enabled _ HTML/Xhtml _ webpage Creation
Source: Internet
Author: User
The Html server control uses a base class derived from HtmlControl (complete Class Name: System. web. UI. htmlControls), which only has the Disabled attribute. the TextBox of the ReadOnly attribute will display such a mark on the client: <input readonly = "readonly">
The TextBox of the Enabled attribute will display such a flag on the client: <input disabled = "disabled">
The Html server control uses a class derived from the HtmlControl base class (full Class Name: System. Web. UI. HtmlControls). Only the Disabled property is available in this class.
Per W3C specification: http://www.w3.org/TR/REC-html40/interact/forms.html#h-17.12
If the input parameter is set to disabled, the following restrictions apply:
<1> acceptable focus <2> when the tab key is used, it will be skipped <3> input that is not set to readonly by successful may have the following restrictions:
<1> Accept focus but cannot modify <2> use the tab key for navigation <3> it may be that successful only has the form element of successful as valid data, that is, it can be submitted. the disabled and readonly text input boxes can only be modified using scripts.
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