Web Server Controls

Processing of Server Controls on a Web Page

The processing of a server control depends on two situations, whether the page is requested for the first time by the client or it is posted back to the Web server when the user interacts with the Web page.

When a page is requested for the first time, the server controls are processed in the following sequence:-

  1. Initializing

  2. Loading

  3. PreRendering

  4. Saving

  5. Rendering

  6. Disposing

  7. Unloading

When the Web Page is posted back to the Web Server, the server controls are processed in the following sequence:-

  1. Initializing

  2. Loading view state

  3. Loading control instance

  4. Loading postback data

  5. PreRendering

  6. Saving

  7. Rendering

  8. Disposing

  9. Unloading

Types of Server Controls

    1. HTML Server Controls

    2. Web Server Controls

    3. Validation Controls

Some of the common HTML server controls are:-

    • HtmlAnchor control

    • HtmlInputText control

    • HtmlInputCheckBox control

    • HtmlInputRadioButton control

    • HtmlSelect control

Some of the most commonly used Web server controls are:

    • TextBox Control

    • Label Control

    • ListBox Contol

    • CheckBox and CheckBoxList control

    • RadioButton and RadioButtonList control

    • AdRotator control

    • Calendar control

    • DropDownList control

    • ImageButton control

    • Button control

    • Wizard control

    • MultiView control

    • HyperLink control

    • FileUpload control

    • XML control

    • Substitution control

ASP.NET provides the following validation controls that can be attached to input controls to validate the values that are entered by the user:-

    • RequiredFieldValidator control

    • RegularExpressionValidator control

    • CompareValidator control

    • RangeValidator control

    • ValidationSummary control

    • CustomValidator control

HOME ASP.NET NEXT PREVIOUS