473,385 Members | 1,813 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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 2555
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****@discussions.microsoft.com> wrote in message
news:31**********************************@microsof t.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****@discussions.microsoft.com> wrote in message
news:31**********************************@microsof t.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****@discussions.microsoft.com> wrote in message
news:31**********************************@microsof t.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
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"...
2
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...
6
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...
2
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...
15
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...
3
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...
4
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"...
10
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...
5
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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...
0
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,...
0
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...

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.