Before creating something new with wood and nails, a carpenter needs to be familiar with the tools at hand. The same is true for working with ASP.NET. Before looking at any more code samples, you should be familiar with the tools that are available to help you create extremely powerful web applications. These tools come in the form of ASP.NET controls that ship with version 2.0 of the .NET Framework. These controls are all briefly described in Table 22.3 according to the category in which they appear on the ASP.NET 2005 Toolbox pane. The Web Part controls are not included in this table, as they will be covered in much more detail in Chapter 26, "Introduction to Web Parts."
Table 22.3. Stock ASP.NET Controls
The label is just that: simple text used to label other interface elements.
An input box.
A standard button.
A button that renders as a hyperlink.
An image that responds to clicks.
A standard check box.
A list of check boxes.
A single radio button.
A list of radio buttons, allowing only one item in the list to be selected at any time.
A clickable image map with defined regions.
A standard table, rendering as the HTML <table> tag.
Renders as a <bl> and its associated list items.
Creates a hidden form field, the value of which you can control with server-side properties.
Renders whatever raw markup you place in its Text Property.
Renders an interactive calendar that defaults to displaying today's date.
A component used for displaying a rotating list of advertising banners or images on a page.
A component used for uploading files to the web server. Exposes the uploaded file as a property containing a Stream object.
Controls the display of a sequence of multiple panels of information rendered in traditional "'Wizard"' format.
Control responsible for rendering either raw XML or XSLT-transformed XML to a Page.
Container control for multiple View controls, each of which contains a discrete interface containing labels, buttons, and so on. Used to dynamically choose which view to display based on criteria such as state, user identity, or permissions.
A container for child controls that can be toggled visible or hidden dynamically.
A placeholder control. You can use it to "'take up space"' at design time and then fill it dynamically at runtime with child controls or raw HTML.
A control that contains child controls to render a subportion of user interface. Used in combination with the MultiView control to dynamically render different views based on criteria such as state or user identity.
A powerful control that allows you to dynamically integrate dynamic content into cached page output.
A control very similar to Literal, but designed to render localized content.
A full-featured control for displaying a grid of data.
A control that renders a list of data, the look and feel of which is controlled via templates.
A control designed to render a details form.
Control designed to a render a form.
A low-level control for rendering a list of data.
A component used to connect to SQL Server.
Component used to connect to MS Access.
Component used to bind controls to an object.
Component used to bind controls to an XML source.
Component allowing binding to a site map.
Component designed for displaying data in a report format.
Essentially a "'bread crumb"' control for displaying a user's location within a site map.
Control for rendering an interactive menu.
Control for rendering an interactive tree.
Use this to force a field to have data.
Use this to require a field to have data within a specified range.
Forces an input control's data to match a given regular expression for validating things like phone numbers, e-mail addresses, and so on.
Forces an input control's data to compare in a specific way to another control's data.
Allows you to write your own validation routine for a given control's data.
Control that displays a summary of all validation failures or indication of success on a given page.
Control that facilitates user authentication.
Renders different views based on user authentication status.
Control used to facilitate password recovery.
Displays user's logged-in status.
Displays user's logged-in name.
Wizard control for creating a new user.
Control allowing user to change password.
HTML Controls (for use only when ASP control is insufficient)
A traditional HTML input button.
A traditional HTML form reset button.
A form submit button.
A text input control.
An HTML file upload control.
A password text entry box.
A checkbox input control.
A radio button input control.
A hidden form value control.
A multirow text input box.
A traditional HTML table control.
A traditional HTML image control.
A select box.
An <hr> tag.
A <div> tag.