InnerHtml
contains the content between the elements opening
and closing tags
InnerText
contains the text between the elements opening and
closing tags
Method
sets how the form is posted to the server; can be either
Get or Post (the default)
Name
the forms name
Style
contains the controls CSS properties
TagName
returns the elements tag name
Target
sets the target frame or window to render the results
of information posted to the server
Visible
if set to False, the control wont be visible
HtmlGeneric Control
The HtmlGeneric control corresponds to HTML elements that do not have their
own specific HTML controls, such as <div>, <span> etc.
Properties
Attributes
a collection of the elements attribute names and their
values
Disabled
if set to True, the control will be disabled
ID
contains the controls ID
InnerHtml
contains the content between the elements opening
and closing tags
InnerText
contains the text between the elements opening and
closing tags
Style
contains the controls CSS properties
TagName
returns the elements tag name
646
Appendix A: Web Control Reference

Get Build Your Own ASP.NET 2.0 Web Site Using C# & VB, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.