Programming Microsoft ASP.NET 4 - Dino Esposito [137]
MergeStyle
Like ApplyStyle, copies any nonempty elements of the specified style to the control. Existing style properties are not overwritten, though.
RenderBeginTag
Renders the HTML opening tag of the control into the specified writer. The method is called right before the control’s RenderControl method.
RenderEndTag
Renders the HTML closing tag of the control into the specified writer. The method is called right after the control’s RenderControl method.
All these methods are rarely of interest to application developers. They are mostly designed to support control developers.
Core Web Controls
The set of Web controls can be divided into various categories according to the provided functionality—input and button controls, validators, data-bound controls, security-related controls, grid and view controls, plus a few miscellaneous controls that provide ad hoc functions and are as common on the Web as they are hard to catalogue (for example, calendar, ad rotator, and so forth).
In this chapter, we’re focused on covering the most common and essential Web controls, such as the controls for capturing the user’s input and posting data to the server. Table 6-11 details the core server controls of ASP.NET. (Other more advanced controls will be covered later when discussing input forms and data binding.)
Table 6-11. Core Web Controls
Control
Description
Button
Implements a push button through the tag.
CheckBox
Implements a check box through the tag.
FileUpload
Allows users to select a file to upload to the server.
HiddenField
Implements a hidden field.
HyperLink