Easy Tutorial
❮ Prop Webcontrol Panel Horizontalalign Control Htmlbutton ❯

ASP.NET HtmlGeneric Control



Definition and Usage

The HtmlGeneric control is used to control other HTML elements that are not specifically defined by concrete HTML server controls, such as <body>, <div>, <span>, <font>, <p>, etc.


Properties

Property Description
Attributes Returns all attribute names and value pairs of the element.
Disabled Boolean value indicating whether the control is disabled. Default is false.
id The unique ID of the control.
InnerHtml Sets or returns the content between the start and end tags of the HTML element. Special characters are not automatically converted to HTML entities.
InnerText Sets or returns all text between the start and end tags of the HTML element. Special characters are automatically converted to HTML entities.
runat Specifies that the control is a server control. Must be set to "server".
Style Sets or returns the CSS properties applied to the control.
TagName Returns the tag name of the element.
Visible Boolean value indicating whether the control is visible.

Example

HTMLGeneric


❮ Prop Webcontrol Panel Horizontalalign Control Htmlbutton ❯