By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,493 Members | 3,101 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,493 IT Pros & Developers. It's quick & easy.

What does "Page Load" and "Page Unload", "Page Life Cycle" exactlymean????

P: n/a
I've read the page life cycle thing in msdn, still, i'm getting a bit
confused of thinking how all the things are going under the hood...

I know that when page loading, that the controls' properties is
populated and when page unloading, the resources are cleared.

What I want to know is what's happening behind it, that is, from the
perspective of the asp.net implementor.....I'm not sure whether i've
stated clearly, hope you get it.

And, as for page life cycle. Does it mean that a request comes in a
page object and a HTTPContext object is contructed for the request,
when the request has been processed, the page object is destroyed as
well as all other resources......I'm not very sure of it...

Thanks for your attention...
Mar 2 '08 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Hello lander,

I recommend you to use .NET Reflector http://www.aisto.com/roeder/dotnet/
to check what happens inside that methods
---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
lI've read the page life cycle thing in msdn, still, i'm getting a bit
lconfused of thinking how all the things are going under the hood...
l>
lI know that when page loading, that the controls' properties is
lpopulated and when page unloading, the resources are cleared.
l>
lWhat I want to know is what's happening behind it, that is, from the
lperspective of the asp.net implementor.....I'm not sure whether i've
lstated clearly, hope you get it.
l>
lAnd, as for page life cycle. Does it mean that a request comes in a
lpage object and a HTTPContext object is contructed for the request,
lwhen the request has been processed, the page object is destroyed as
lwell as all other resources......I'm not very sure of it...
l>
lThanks for your attention...
l>
Mar 3 '08 #2

P: n/a
Hello lander,

I recommend you to use .NET Reflector http://www.aisto.com/roeder/dotnet/
to check what happens inside these methods
---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
lI've read the page life cycle thing in msdn, still, i'm getting a bit
lconfused of thinking how all the things are going under the hood...
l>
lI know that when page loading, that the controls' properties is
lpopulated and when page unloading, the resources are cleared.
l>
lWhat I want to know is what's happening behind it, that is, from the
lperspective of the asp.net implementor.....I'm not sure whether i've
lstated clearly, hope you get it.
l>
lAnd, as for page life cycle. Does it mean that a request comes in a
lpage object and a HTTPContext object is contructed for the request,
lwhen the request has been processed, the page object is destroyed as
lwell as all other resources......I'm not very sure of it...
l>
lThanks for your attention...
l>
Mar 3 '08 #3

P: n/a
That is how WebServer /Browser (any web server) work

Browser connects to server, asks for URL, takes a response, Disconnect.....

thus if you have one HTML page with 3 images on it, Browser will connect,
ask for HTML, disconnect
Connect again, ask for 1st image, disconnect
Connect again, ask for 2nd image, disconnect
Connect again, ask for 3rd image, disconnect

George,.
"lander" <lo************@gmail.comwrote in message
news:09**********************************@s19g2000 prg.googlegroups.com...
I've read the page life cycle thing in msdn, still, i'm getting a bit
confused of thinking how all the things are going under the hood...

I know that when page loading, that the controls' properties is
populated and when page unloading, the resources are cleared.

What I want to know is what's happening behind it, that is, from the
perspective of the asp.net implementor.....I'm not sure whether i've
stated clearly, hope you get it.

And, as for page life cycle. Does it mean that a request comes in a
page object and a HTTPContext object is contructed for the request,
when the request has been processed, the page object is destroyed as
well as all other resources......I'm not very sure of it...

Thanks for your attention...

Mar 3 '08 #4

P: n/a
"lander" <lo************@gmail.comwrote in message
news:09**********************************@s19g2000 prg.googlegroups.com...
And, as for page life cycle, does it mean that a request comes in a
page object and a HTTPContext object is contsructed for the request,
when the request has been processed, the page object is destroyed as
well as all other resources?
Yes.

The web works on a request / response architecture.

A client (e.g. a web browser) sends an HttpRequest to a web server.

The web server processes the HttpRequest, and then sends back an
HttpResponse if it can.

The web server has not the slightest idea what the client does with that
HttpResponse because, apart from very exceptional cases, there is no
permanent between web browser and web server...

This is often the most difficult concept for WinForms developers to grasp,
and one of the reasons why e.g. a web server can't know when a web browser
has been closed or even when the user has navigated away to another site...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Mar 3 '08 #5

This discussion thread is closed

Replies have been disabled for this discussion.