471,306 Members | 1,215 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

how to know when page is ready to be sent to client

Hi
C# .net1.1

Is there an event or some other way to know that all of the page
proccessing is finished and that the page is ready to be sent to the
client or do we just have to determine this based on our own logic
inthe code??

I have some display stuff that is standard for all my pages. It is
located in a base page file that all my aspx pages inherit from.
Currently it is run from the base page/page_load event. It generates
some html, etc that displays on all my pages.

However, if any of my page specific event procedures do things that
would afftect my base page standard out put, they are not reflected on
the finished page because all other events run after the page_load
events.

Is there a way to hook into some event after everthing else is
finished and then write more stuff to the output page?

Thanks
Feb 5 '06 #1
1 1270
Jeff User,
This article by Esposito will give you more insight into the ASP.NET Page
Lifecycle and what stage is the last point that you can alter the response
stream before it is emitted.
http://msdn.microsoft.com/asp.net/?p...ctmodel_topic2

If that's not sufficient, some googling on "ASP.NET Page Lifecycle" will
reveal similar resources.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Jeff User" wrote:
Hi
C# .net1.1

Is there an event or some other way to know that all of the page
proccessing is finished and that the page is ready to be sent to the
client or do we just have to determine this based on our own logic
inthe code??

I have some display stuff that is standard for all my pages. It is
located in a base page file that all my aspx pages inherit from.
Currently it is run from the base page/page_load event. It generates
some html, etc that displays on all my pages.

However, if any of my page specific event procedures do things that
would afftect my base page standard out put, they are not reflected on
the finished page because all other events run after the page_load
events.

Is there a way to hook into some event after everthing else is
finished and then write more stuff to the output page?

Thanks

Feb 5 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Kurita Kinoshita | last post: by
11 posts views Thread by yangsuli | last post: by
6 posts views Thread by RobGMiller | last post: by
3 posts views Thread by George | last post: by
reply views Thread by rosydwin | last post: by

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.