Event AFTER Response is sent ???

R

Ronald Geyeshock

Hello All,

I am trying to find a way to process some logic in the code-behind of
an ASP.Net page after a response has been sent back to the client.

Basically, I want to be able to process some potentially
time-consuming logic (statistics gathering) after every page without
impacting the amount of time it takes to return the page to the
client. I've tried putting this code in a few of the Application_
events (like Application_PostRequestHandlerExecute and
Application_ReleaseRequestState), but they all get processed before
the response is actually sent to the client. I can call
Response.Flush to send the content, but the "globe" will continue
spinning on the client because the response is not complete.

I'm surprised there isn't an event that can be called - or else maybe
I just don't see one.

Does anyone have any other ideas on how this could be done?

Thanks in advance,

Ronald G.
(e-mail address removed)
 
S

Steve Caliendo

You can do it by making a .dll and calling it from your web page. I had a
similar problem - some calculations of my web based app take up to 3 minutes
to complete, and that's unacceptable to an end user. So, I made a .dll,
referenced it in the web app, and call a function that shell's an
executable. The dll function completes as quickly as it is run, and the
shelled .exe file does the calculations and posts the results to a database
when it's complete.

Steve
 

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

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top