473,399 Members | 3,106 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,399 software developers and data experts.

Possible to run code AFTER render?

Hi there

I would like the server to run some code AFTER it has completely
rendered the page and sent it to the client - is this possible?

Thanks in advance

Rich Stone
Nov 18 '05 #1
3 5384

"Rich" <ri*****@btinternet.com> wrote in message news:b3**************************@posting.google.c om...
Hi there

I would like the server to run some code AFTER it has completely
rendered the page and sent it to the client - is this possible?

Thanks in advance

Rich Stone


You probably need the Unload event.

See
http://msdn.microsoft.com/library/de...bjectmodel.asp

Hans Kesting
Nov 18 '05 #2


Thanks for the reply, but (from the article you linked to):

"The final sign of life of a page is the Unload event that arrives just
before the page object is dismissed. In this event you should release
any critical resource you might have (for example, files, graphical
objects, database connections).

Finally, after this event the browser receives the HTTP response packet
and displays the page."

The code I want to run needs to be AFTER the client has received the
page. I don't want the code slowing down the speed it takes for the
response after the request.

Is this possible?
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #3
Rich:

Perhaps you are looking for the EndRequest event of the
HttpApplication class. You could hook this event in Global.asax.

--
Scott
http://www.OdeToCode.com

On Mon, 06 Sep 2004 11:31:22 -0700, Rich Stone
<ri*****@btinternet.com> wrote:


Thanks for the reply, but (from the article you linked to):

"The final sign of life of a page is the Unload event that arrives just
before the page object is dismissed. In this event you should release
any critical resource you might have (for example, files, graphical
objects, database connections).

Finally, after this event the browser receives the HTTP response packet
and displays the page."

The code I want to run needs to be AFTER the client has received the
page. I don't want the code slowing down the speed it takes for the
response after the request.

Is this possible?
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


Nov 18 '05 #4

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

Similar topics

0
by: Horia Tudosie | last post by:
Using Visual Studio 2003 This is to report a series of bugs regarding the FlagsAttribute and (independently) the usage of interfaces in Web applications. Let’s declare xColors type like: ...
24
by: trint | last post by:
add them into one PrintDocument: PrintDocument pd1 = new PrintDocument(); PrintDocument pd2 = new PrintDocument(); PrintDocument pdCombined = new PrintDocument(); pdCombined = pd1 + pd2;...
3
by: Eric | last post by:
My problem, I have a custom server control who inherits of a Textbox. What I can make for dont render the "SelfClosingChars" ("/") ? Ex: <INPUT .... > Thanks !
2
by: KatB | last post by:
Hoping I can explain what I need... I have a web control within an aspx page. I need to store, edit and retrieve tagged HTML in the DB (which I can do), then render that HTML in a control (label...
3
by: PJ6 | last post by:
I want to render this text into the <HEAD> section of a page (and perhaps mute any existing title declaration, or alter it to be this instead) - <title runat="server" id=HtmlTitle></title> It...
8
by: Daniel | last post by:
Hi, Does anyone know if it is possible to put an aspx page inside of another? OR run an aspx page and capture the output as a string and then write this out to a page.... So for example say...
5
by: Piotr Strycharz | last post by:
Hi I want to render a page in memory. That is (pseudo-code): Page aPage = new Page(); LiteralControl lc = new LiteralControl("<form runat=server><asp:Label id=label Runat=server/>...");...
7
by: eyal.herlin | last post by:
hi, i have the following demo code: <html> <head> </head> <frameset cols="30%,*"> <frame src=""> </frame> <frame src=""> </frame>
3
by: shapper | last post by:
Hello, I have been creating a few controls and I have a problem. I want to create a control that renders a TextBox, a Label, and a few more controls. Is it possible to create such a control...
3
by: knkk | last post by:
I am trying to include this code in the footer.template files of all blog templates: <script type="text/javascript"> var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." :...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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,...
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...
0
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...
0
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,...
0
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...

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.