7.3. HTML server controls

The HTMLControl class provides common properties inherited by all HTML server control classes within the System.Web.UI.HTMLControls namespace. The HTMLControl class adds its own properties to those inherited from the Control class.

  • Attributes This property returns a collection of all attribute name and value pairs in the server control tag.

  • Disabled Indicates whether or not the HTML server control is disabled.

  • Style Returns a collection of all CSS properties applied to an HTML control.

  • TagName Returns the element name of a control.

The HTMLControl class does not add any of its own methods and events – all are inherited from the Control class.

This class serves as a base for three derived classes – HTMLContainerControl ...

Get A Programmer's Guide to .NET now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.