What is Asp.Net?
Asp.Net is a framework developed by Microsoft. Its a subset of .Net framework. I
ts main purpose is to build dynamically data driven Web applications and Web ser
vices.
What is a Framework?
Is a collection of classes.
What is Stateless protocol?
Stateless Protocol is a communication protocol that treats each request as a ind
ependent request which is not releated to any previous requests.
In stateless protocol the server is not required to retain the session s
tates or information during multiple requests.
Where all Events can occur.?
Events can occur at 3 levels
1. Application Level (App start/end, Session Start/end stored in global.
asax)
2. Pagel Level (Page Load, Page reander)
3. Control Level (Button Click, Drop Down, list,..etc)
What are different Page Life cycle events?
1.
2.
3.
4.
Web Application Creates an requested webform.
Processes the Control Events.
GeneratesHTML, and sends back to requested client.
Cleans the Webform.
Event Sequence...
Event Name
~~~~~~~~~~~
1. PreInit(PreInitalization)
Description
~~~~~~~~~~~~
Occurs prior to the initilization of the page.
a. IsCallBack, IsPostBack, IsCrossPagePost back
is set.
b. Allows us to set Master page and Page Theme D
ynamically
c. Used when working with dynamic control.
2.Init(Initalization)
nts of the
rom the
Occurs when the initalization of all the compone
web form are completed.
Restoration of the Event state(Server Control) f
server happens at this event.
3.InitComplete
omplete.
This event occur to say that Initalization has c
4.PreLoad
Happens Just before the PageLoad event.
5.Load
pens for
orms.
This event occurs just before the Load event hap
all the indidual components of the web f
_____________________________________________________________________________
Above are the Application and page level events. Now the page will be loaded
_____________________________________________________________________________
6. Control Events
an drop
After the Load Event..Control Events Occur when
down, list is selected.
7.Load Complete
s are
This event will occur when all the control event
handled.
8.PreRender
e
Occurs Just before the rendering of the HTML pag
requested.
9.PreRenderComplete
s
Indicates the Completion of the Rendering Proces
10.Unload
Cleans from the server memory.Page destroyed.
11.Error
occured.
This event occurs when an unhandled exception is
What are server control events?
1.PostBack event :This event will send back the control to the server wh
en a button is clicked or an text box is changed or some other event.
2.Cached event : Are the events where the Event status is cached(Stored)
and are sent back to the server when an postback event occurs.
3.Validator Event : This event occurs at the client prior to the postbac
k event.