
InnerHtml
contains the content between the element’s opening
and closing tags
InnerText
contains the text between the element’s opening and
closing tags
Method
sets how the form is posted to the server; can be either
Get or Post (the default)
Name
the form’s name
Style
contains the control’s CSS properties
TagName
returns the element’s 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 won’t 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 element’s attribute names and their
values
Disabled
if set to True, the control will be disabled
ID
contains the control’s ID
InnerHtml
contains the content between the element’s opening
and closing tags
InnerText
contains the text between the element’s opening and
closing tags
Style
contains the control’s CSS properties
TagName
returns the element’s 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 O’Reilly online learning.
O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.