0% found this document useful (0 votes)
15 views5 pages

ASPDay 3

The document describes various page life cycle events in ASP.Net: - Page_Init is fired when the page is initialized but controls have their default values and viewstate is not loaded. - Page_Load is fired when the page is loaded and controls are guaranteed to be fully loaded with any values from postback. - Control_Event is fired if a control triggers page reload, such as a button click. - Page_Unload is fired when the page is unloaded from memory. The document also provides an overview of different types of web server controls in ASP.Net such as standard controls, validation controls, data binding controls and more. It describes the common syntax used for any

Uploaded by

Fenil Desai
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views5 pages

ASPDay 3

The document describes various page life cycle events in ASP.Net: - Page_Init is fired when the page is initialized but controls have their default values and viewstate is not loaded. - Page_Load is fired when the page is loaded and controls are guaranteed to be fully loaded with any values from postback. - Control_Event is fired if a control triggers page reload, such as a button click. - Page_Unload is fired when the page is unloaded from memory. The document also provides an overview of different types of web server controls in ASP.Net such as standard controls, validation controls, data binding controls and more. It describes the common syntax used for any

Uploaded by

Fenil Desai
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 5

Page Life Cycle Events

Page_Init
This is fired when the page is initialized
Page_Load
This is fired when the page is loaded
The difference between Page_Init and Page_load is that
the controls are guaranteed to be fully loaded in the
Page_load.The controls are accessible in the Page_Init
event,but the ViewState is not loaded,so controls will have
their default values,rather than any values set during the
postback.
Control_Event
This is fried if a control triggered the page to be
reloaded (such as a button)
Page_unload
This is fired when the page is unloaded from the
memory
Types of Controls in
ASP.Net
HTML SERVER
SYNTAX
<INPUT TYPE=TEXT RUNAT=SERVER>

WEBSERVER CONTROLS
Web Server Controls
Standard List Validatio Data Misc
Controls Controls n bound Controls
label  Radio Controls
Button List
Controls
Textbox Required Crystal
 Check Data Grid
Button field Report
Box List Validator Data List
Link Viewer
Dropdown Repeater control
Button Range
List Validator
Image List Box
Button Compare
Calendar Validator
AdRotator Regular
Expression
Panel
Validator
Place
Custom
Holder
Validator
Table
Validation
Literal Summary
Control
Radio
Common Syntax for any web
server control

<asp:controltype id=“name of the


control” runat=“server”
----------------
----------------
//additional properties
></asp:controltype>
To close syntax is “ / “ .
In order to set or get the value from any
standard control text property should be
used.
Eg:
<asp:label id=“lb1” runat=“server”
text=“user name”></asp:label>
<asp:button id=“lb1” runat=“server”
text=“Login” />

You might also like