Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Possible to run code AFTER render?

Reply
Thread Tools

Possible to run code AFTER render?

 
 
Rich
Guest
Posts: n/a
 
      09-06-2004
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
 
Reply With Quote
 
 
 
 
Hans Kesting
Guest
Posts: n/a
 
      09-06-2004

"Rich" <> wrote in message news: 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


 
Reply With Quote
 
 
 
 
Rich Stone
Guest
Posts: n/a
 
      09-06-2004


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!
 
Reply With Quote
 
Scott Allen
Guest
Posts: n/a
 
      09-06-2004
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
<> 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!


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Does Code in a Separate Thread Have to be in a <run()> or Called by a <run()>? KevinSimonson Java 7 10-18-2010 06:39 PM
run code run! Eugen Ciur Ruby 2 09-09-2010 05:17 PM
IE freeze/page will not load after code is run alphanode ASP .Net 1 04-25-2005 07:10 AM
How to run script after specified amount of time after login vasanth kumar ASP General 1 10-03-2004 07:34 AM
How do you register cleanup code to be run after script execution? use dmgass at hotmail dot com Python 6 05-11-2004 01:48 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57