asp.net.ph

Skip Navigation LinksHome > ASP.NET Web Forms > Web Forms Server Controls > Controls You Can Use on Web Forms > ASP.NET HTML WebControls

ASP.NET HTML Controls

  Section Index


HtmlGenericControl Server Control

Defines the methods, properties, and events for all HTML server control elements not represented by a specific .NET Framework class.

The HtmlGenericControl provides an ASP.NET server-control implementation for all other HTML elements not directly represented by a specific HTML server control ( for example, <body>, <div>, <span>, and so on ).

The following sample illustrates using the HtmlGenericControl to dynamically change the background attribute of the HTML <body> element.

Applying HtmlGenericControl Styles Dynamically
Run Sample | View Source
See Also

HtmlGenericControl Syntax

More ...
Back to top


© 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