Some common Server Controls
Types of Server controls
In this section, we will talk about some controls that are used often. These controls are located in the `Standard' section of the Toolbox. We will discuss specifically about the following controls:
- Label
- Text Box
- Button
- Hyperlink
- Check Box
- Radio Button
- List Box
- Drop down List
- Image
Label Control - Used to display text on the page. The text to display can be specified when designing the page or can be set in response to the user interaction.
TextBox Control - Used for entering text. This is the most commonly used control for getting user input.
Button Control - Generally used for submitting information to the server. For example, submitting a registration form, confirming a shipping order etc.
Hyperlink Control - Used for providing link to the other sections of the web site or an external web page or file.
CheckBox Control - Used for selecting options. More than one option can be selected using this control.
RadioButton Control - This control is also used for selecting options but only one option can be selected among the given options.
ListBox Control - Used for displaying a list of items from which the user can select the item of her choice.
DropDownList Control - This control also displays a list of items but the list remains collapsed when not in use to save space.
Image Control - Used for displaying images on the page. The image can change in response to the user interaction.
As we have discussed earlier, each control has its own properties and events. Properties decide how the control will look on the page. Events are used to decide what will happen when the user interacts with the control. The following tables display the important properties and events of the controls we have just seen: