aspnet.jpg (2007 bytes)

WEB CONTROLS

ASP.NET provides several controls to choose from in developing a web page in ASP.  Many features that the ASP.NET environment provides are not available in other environments.  A list of the most common Web Controls can be seen below.
 
 
FUNCTION CONTROL DESCRIPTION
Text Display Label Displays text that users can not directly edit.
Text Edit TextBox Displays text entered at design time that can be edited by users at run-time or changed programmatically.
Selection from a List DropDownList Allows users to either select from a list or enter text
ListBox Displays a list of choices.
Graphics Displays Image Displays an Image
AdRotator Displays a sequence of images
Value Setting CheckBox Displays a box that users can click to turn an option on or off
RadioButton Displays a single button that can be selected or not
Date Setting Calendar Displays a calendar to allow users to select a date
Commands Button Used to perform a task
LinkButton Like a button control but has the appearance of a hyperlink
ImageButton Like a button control but has the appearance of an image
Navigation Controls HyperLink Creates Web navigation links
Table Controls Table Creates a table
TableCell Creates an individual table cell
TableRow Creates an individual row in a table
Grouping other controls CheckBoxList Creates a collection of check boxes
Panel Creates a boarderless division on the form thaty serves as a container for other controls
RadioButtonList Creates a group of radio buttons.  Inside the group only one can be selected
List Controls Repeater Displays information from a data set using a set of HTML elements and controls that the programmer specifies, repeating the elements for each record in the data set
DataList Like the Repeater control but with the ability to display information in a table
DataGrid Displays information, usually data-bound, in tabular formas with columns.

In order to use a control in ASP, the programmer will have to use VisualStudio .NET or can use the command <asp:### > with the ### replaced by the control function listed above.

Web controls can also discover the specific browser a user is using in order to take advantage of features of the browser.  Writing Web controls is not that difficult since the .NET Framework has prefabricated base classes for the control’s necessary infrastructure.