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:-
Initializing
Loading
PreRendering
Saving
Rendering
Disposing
Unloading
When the Web Page is posted back to the Web Server, the server controls are processed in the following sequence:-
Initializing
Loading view state
Loading control instance
Loading postback data
PreRendering
Saving
Rendering
Disposing
Unloading
Types of Server Controls
HTML Server Controls
Web Server Controls
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