
720
|
Chapter 39: The System.Web.UI.HtmlControls Namespace
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
JavaScript event through an attribute, is the equivalent of using the tag <input type="text"
id="MyText" onblur="javascript:alert('Focus lost!');" runat="server"/>. Some attributes may be
provided as properties in the derived class. Another dictionary collection, Style, allows
you to specify CSS properties for a tag (as in MyText.Style["width"] = "120px").
(Refer to Cascading Style Sheets: The Definitive Guide (O’Reilly) for more information
on different HTML and CSS tag elements.)
Hierarchy
System.Object ➝ System.Web.UI.Control(System.ComponentModel.IComponent, System.
IDisposable, System.Web.UI.IParserAccessor, System.Web.UI.IDataBindingsAccessor)
➝
HtmlControl(System.Web.UI.IAttributeAccessor)
Subclasses
HtmlContainerControl, HtmlImage, HtmlInputControl
HtmlForm
System.Web.UI.HtmlControls (system.web.dll)
disposable
class
This class represents the HTML <form> tag, which is used as a container for other
input controls. All ASP.NET Server Controls that post back to the server must be
contained in an HtmlForm tag. The properties of this control shouldn’t be changed. The
Method property (set to “post”) is particularly important. If modified, you may not be
able to use the built-in postback and control state management services provided ...