473,765 Members | 2,066 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

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
4 3102
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
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
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******** *************** ***********@s19 g2000prg.google groups.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
"lander" <lo************ @gmail.comwrote in message
news:09******** *************** ***********@s19 g2000prg.google groups.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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1782
by: Scott | last post by:
MySQL calls 4.1.5 a "Gamma" release. What does that mean?
2
7295
by: Don | last post by:
What does the onfocus value of "this.select()" do in the following <input...> tag? <input type=text name="img" size=20 onfocus="this.select()" value="http://" tabindex=7> Thanks, Don ----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==---- http://www.newsfeeds.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
6
7113
by: adnanx82 | last post by:
Hi, I was wondering if anyone knew how to perform the following 2 tasks in Javascript: 1) distinguish between frames and iframes (during an onload event for example) 2) figure out whether a container page has finished loading completely with all its component frames or iframes (onload event is not useful because we have more than one onload, and container page onload is not
3
2118
by: Jeff Smythe | last post by:
I simply want to execute some code once when a new session of my ASP.NET application is started (I'm not using session state for anything else - just writing some data to a database). I thought that I could simply put the code in the Session_Start event procedure in Global.asax.cs, however, the event procedure executes and a new session is created every time any page is requested - not just for the first page requested....
4
2527
by: Flip | last post by:
I'm seeing one of my websites giving me an error message on the page after it loads up as "WXBUnit Undefined" What does that mean? The formatting of the site is horrible! I'm not sure what is going on with it. Thanks.
5
2222
by: mscurto | last post by:
I wrote an ASP Web App in Visual Studio and I want the user entered data to go to a specific server. This runat looks like it is trying to post to the asp page. If I remove all instances of it, it looks like it works but it screws up my page. What does this command do and can I work around this?
4
3731
by: chandanlinster | last post by:
hello everybody, as i was going through the "printf" man page, i came across this statement. printf("%*d", width, num); what does "*" mean?
0
3584
by: DC | last post by:
The problem I'm using the .NET GridView and FormView objects for the first time and im getting the error "An OleDbParameter with ParameterName '@ID' is not contained by this OleDbParameterCollection" whenI try to write a new record. Delete and Modify work fine its just the add record function causes the error.
1
5686
by: =?Utf-8?B?QWxoYW1icmEgRWlkb3MgS2lxdWVuZXQ=?= | last post by:
Mister, any solution about it ? any sample code please ?? thanks in advance
0
9404
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10164
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9959
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9835
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7379
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5423
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3926
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3532
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2806
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.