asp.net.ph

Skip Navigation Links

Shared HTML Control Properties

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.

Properties Shared by All HTML Controls


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 ).

Properties Shared by All HTML Input Controls


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.

Properties Shared by All HTML Container Controls


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.

See Also

HtmlControl Class   HtmlInputControl Class   HtmlContainerControl Class



© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

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