473,792 Members | 2,937 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Page / Web Control Event order?

Could someone give me a comprehensive order of events as they pertain to web
controls within a page. The page events are:
Page_Init
Page_Load
Page_PreRender
Page_Unload
Page_Disposed

So where would the Init and Load events of web controls fit into the page
events. Would it be?
Page_Init
WebControlOne Init
WebControlTwo Init
Page_Load
WebControlOne Load
WebControlTwo Load
Etc….

After an extensive search I have not come across this information.
Thanks

Nov 19 '05 #1
3 2685
Theres a number of pacea already explaining the pipeline in asp.net.

Here is quite a comprehensive yet short explanation.
http://www.c-sharpcorner.com/Code/20...TLifeCycle.asp

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

"Tome73" <To****@discuss ions.microsoft. com> wrote in message
news:31******** *************** ***********@mic rosoft.com...
Could someone give me a comprehensive order of events as they pertain to web controls within a page. The page events are:
Page_Init
Page_Load
Page_PreRender
Page_Unload
Page_Disposed

So where would the Init and Load events of web controls fit into the page
events. Would it be?
Page_Init
WebControlOne Init
WebControlTwo Init
Page_Load
WebControlOne Load
WebControlTwo Load
Etc..

After an extensive search I have not come across this information.
Thanks

Nov 19 '05 #2
I can't for the life of me find where that article covers a webcontrol's
event order as it relates to the page orded and the author doesn’t even cover
the Page_Load event in his description anyways.

I think the order I outlined is correct but I am not completly sure can
someone tell me if it is? I have not seen a single article covering this
topic. I have seen articles say that the load event of a webcontrol is ran
right after the page load event, but I am not sure about init, prerender and
unload.
"John Timney (ASP.NET MVP)" wrote:
Theres a number of pacea already explaining the pipeline in asp.net.

Here is quite a comprehensive yet short explanation.
http://www.c-sharpcorner.com/Code/20...TLifeCycle.asp

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

"Tome73" <To****@discuss ions.microsoft. com> wrote in message
news:31******** *************** ***********@mic rosoft.com...
Could someone give me a comprehensive order of events as they pertain to

web
controls within a page. The page events are:
Page_Init
Page_Load
Page_PreRender
Page_Unload
Page_Disposed

So where would the Init and Load events of web controls fit into the page
events. Would it be?
Page_Init
WebControlOne Init
WebControlTwo Init
Page_Load
WebControlOne Load
WebControlTwo Load
Etc..

After an extensive search I have not come across this information.
Thanks


Nov 19 '05 #3
Here are the details about the control & page lifecycle:
http://msdn.microsoft.com/library/de...nlifecycle.asp
http://www.15seconds.com/issue/020102.htm
http://msdn.microsoft.com/library/de...singStages.asp

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"Tome73" <To****@discuss ions.microsoft. com> wrote in message
news:31******** *************** ***********@mic rosoft.com...
Could someone give me a comprehensive order of events as they pertain to
web
controls within a page. The page events are:
Page_Init
Page_Load
Page_PreRender
Page_Unload
Page_Disposed

So where would the Init and Load events of web controls fit into the page
events. Would it be?
Page_Init
WebControlOne Init
WebControlTwo Init
Page_Load
WebControlOne Load
WebControlTwo Load
Etc..

After an extensive search I have not come across this information.
Thanks

Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
11301
by: martin | last post by:
Hi, I am a web page and a web user control. My web user control is placed in my web page using the following directive <%@ Register TagPrefix="uc1" TagName="Header" Src="WebControls/Header.ascx" %> The web user control contains the following server controls
2
5007
by: Sam | last post by:
I have a custom control (MyTextBox - taken from Microsoft website) that implements the IPostBackDataHandler interface. It is added to the controls collection of a placeholder control during the Page Load of a main ASPX page. Now if we debug the MyTextBox, we find the order of events like so (during a Posback, of course): OnInit -> OnLoad -> LoadPostData. My question is why does the LoadPostData occur *after* the OnLoad instead of...
6
2959
by: MooreSmnith | last post by:
When I navigate to the next page using Response.Rediect("MyNextPage.aspx") current page Page_Load event is called. What I may wrongly understood is that post back will happen whenever there is any server side event happens, resulting in Page_load event. Page_Load is also happening when I navigate to the next page. That means Page_load will always happen when I navigate to the next page. Please correct me If I have totally misunderstood...
2
1751
by: msnews.microsoft.com | last post by:
It appears myButton_OnClick is triggering in my user control AFTER its parent's Page_Load already runs. Is there a way to make the parent Page_Load to run afterwards? I'm changing a session variable when a user clicks on a button in a user control. The parent page reads in the session variable. Obviously, this isn't going to work if the parent has already done its thing. I'm looking for an alternative, but adding code to every page...
15
4780
by: Nathan | last post by:
I have an aspx page with a data grid, some textboxes, and an update button. This page also has one html input element with type=file (not inside the data grid and runat=server). The update button will verify the information that has been entered and updates the data base if the data is correct. Update will throw an exception if the data is not validate based on some given rules. I also have a custom error handling page to show the...
3
1637
by: Joe | last post by:
Hello all: From what I understand the ItemCommand, UpdateCommand, SortCommand, etc events for the datagrid require that the datagrid's enableVireState property is set to true. Does the page-level enableViewState property affect the control's enableViewState property? I am trying to understand this result: when I have the page's enableViewState turned off and the control's enableViewState turned on, the ItemCommand event never fires...
4
1889
by: Matt Jensen | last post by:
Howdy all Been searching and can't find a good answer to my problem. I've got a usercontrol 'banner' at the top of my page, and when the selection in the dropdown list changes I want the "host" webform/page to be reload so the data on it (in repeaters) is reloaded using a new value from the dropdownlist (and which btw is also stored in a session variable for later use). I'm not sure the best way to do this.
10
2429
by: Benton | last post by:
Hi there, I have a UserControl with a couple of textboxes and a couple of buttons ("Save" and "Cancel"). The Click event for this buttons is in the UserControl's codebehind of course, so here's my question. Once the UserControl is dropped onto the container page, how can I perform some action on the codebehind of the container page from the codebehind of the UserControl? For instance, suppose that the UserControl is dropped inside one...
5
1421
by: Annie | last post by:
hello guys, I have a scenario that I am confused about ... I have a number of pages which are using a Master page ... Then I have seperate Footer user control that can reside in master page or could be kept in the content pages (still not confirmed and looking for any suggestion)
0
9670
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10430
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...
0
10211
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10000
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...
0
9033
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7538
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
6776
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5436
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3719
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.