473,386 Members | 1,752 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,386 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 1336
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Kurita Kinoshita | last post by:
I'm trying to find a way to have a script communicate with a server without having to load a new page. The idea is to have the server act as a simple wrapper for a database, letting the client do...
0
by: Ivan K | last post by:
Hi, This is probably more of an Internet Explorer-related problem but I thought I would crosspost to microsoft.public.dotnet.framework.aspnet as this problem has probably occured for other...
4
by: Adam Boczek | last post by:
I've a dropdownlist control to change language on my page. Because of page lifetime, I have to set all my labels, texts etc. from ResourceManager in prerender handler to be sure that culture change...
12
by: urs | last post by:
Hi, please look at the ASP.NET 2 site http://www.prismatest.ch/catalog/EM.ASPX (user=prismashop, password=minicooper). Use the ">" Button to go to the next pages. You will notice that the page...
4
by: Elhanan | last post by:
hi.. i'm trying to think of a way for a web page to contain barcode and still be archvied. i cannot use the usuall servlet/activex server side solutions becouse this page needs to be sent...
11
by: yangsuli | last post by:
i want to creat a link when somebody click the link the php script calls a function,then display itself :) i have tried <a href=<? funtion(); echo=$_server ?>text</a> but it will call the...
9
by: darthghandi | last post by:
I am trying to create a server application using asynchronous sockets. I run into a problem when I try to connect to my server using a non-.net program. I can establish the connection, and send...
6
by: RobGMiller | last post by:
Using ASP.NET 2.0 Need to simply process incoming postback information without sending back a reponse. Client sends HTML from application other than a browser to a page on a web site. Web...
3
by: George | last post by:
How can I use an event of "Page" control other than the Page_Load? I want to use the event "Unload" to execute some code when the page closes. How can I declare it? The peculiar thing is when I...
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: 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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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.