Possible to run code AFTER render?

R

Rich

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
 
R

Rich Stone

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?
 
S

Scott Allen

Rich:

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top