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

ASP .Net Day3

The document discusses page life cycle events in ASP.Net. Page_Init fires when the page is initialized but controls are not fully loaded. Page_Load fires when the page is loaded and controls are guaranteed to be fully loaded. Control_Event fires if a control triggers page reload, and Page_Unload fires when the page is unloaded from memory. It also lists different types of web server controls in ASP.Net like standard, list, validation, data bound and misc controls. Common syntax to define a web server control includes specifying the control type, ID, and running at the server along with additional properties. The text property is used to set or get values from standard controls.

Uploaded by

Bhupesh Kumar
Copyright
© © All Rights Reserved
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)
66 views5 pages

ASP .Net Day3

The document discusses page life cycle events in ASP.Net. Page_Init fires when the page is initialized but controls are not fully loaded. Page_Load fires when the page is loaded and controls are guaranteed to be fully loaded. Control_Event fires if a control triggers page reload, and Page_Unload fires when the page is unloaded from memory. It also lists different types of web server controls in ASP.Net like standard, list, validation, data bound and misc controls. Common syntax to define a web server control includes specifying the control type, ID, and running at the server along with additional properties. The text property is used to set or get values from standard controls.

Uploaded by

Bhupesh Kumar
Copyright
© © All Rights Reserved
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 Validation Data Misc
Controls Controls Controls bound Controls
label  Radio Required fieldControls
Textbox Button List Validator Crystal
Data Grid
Button  Check Box Range Report Viewer
List Data List
Link Button Validator control
Dropdown Repeater
Image Button Compare
List Validator
Calendar List Box Regular
AdRotator Expression
Panel Validator
Place Holder Custom
Table Validator
Literal Validation
Control Summary
Radio Button
Check Box
XML
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