ASP.NET Syntax ASP.NET Syntax for HTML Controls
This section covers the properties inherited from the base HtmlControl class, and apply to all HTML server controls. The links open to a full description of each attribute, including syntax, valid values, and example usage.
Attributes |
Gets all attribute name and value pairs expressed on a server control tag within a selected ASP.NET page. |
Disabled |
Gets or sets a value that indicates whether the disabled attribute is included when an HTML control is rendered on the browser. Including this attribute makes the control read-only. |
Style |
Gets all cascading style sheet ( CSS ) properties that are applied to a specified HTML server control in an .aspx file. |
TagName |
Gets the element name of a tag that contains a runat=server attribute. |
This section also includes the properties inherited from the base HtmlInputControl and HtmlContainerControl classes, and apply to specific subsets of HTML controls ( see HTML Server Controls Hierarchy ).
Name |
Gets or sets a unique identifier name for the HtmlInputControl. |
Value |
Gets or sets the contents of an input control. |
Type |
Gets the type of an HtmlInputControl. |
InnerHtml |
Gets or sets the content found between the opening and closing tags of the specified HTML control. |
InnerText |
Gets or sets all text between the opening and closing tags of the specified HTML control. Unlike the InnerHTML property, InnerText provides automatic HTML encoding and decoding. |
HtmlControl Class HtmlInputControl Class HtmlContainerControl Class