NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

HtmlGenericControl

The HtmlGenericControl is created on the server in response to tags that include the runat="server" attribute/value pair in elements which do not map directly to a specific HTML control. These include the <span>, <body>, <div>, and <font> elements among others. The control maps the tag name of the particular element that is to be used as an HTML control to the page framework through a TagName property. This control inherits functionality from the HtmlContainerControl class, which allows developers to dynamically change inner content of HTML control tags.

ASP+ Syntax

Required properties are noted in boldface type.

<span | body | div | font | others
   runat="server"
   id="programmaticID"
>
Contentbetweentags
</span | body | div | font | others>

Tasks

Generating Text Dynamically Using the <span> Element

See Also

Web Forms Controls by Function |