Solved

I need to call Application_End()

Posted on 2011-03-04
6
459 Views
Last Modified: 2012-05-11
I need to clean up at the end of a session by deleting a record. What else must I do since I presume I am overriding the default behavior?

Thanks,
newbieweb
0
Comment
Question by:newbieweb
  • 5
6 Comments
 
LVL 10

Accepted Solution

by:
John Claes earned 500 total points
ID: 35037318
msdn states :
http://msdn.microsoft.com/en-us/library/ms178473.aspx


==> Called once per lifetime of the application before the application is unloaded.
So this moment the application is unloading as we speak ;-)

It might be handy to use the dispose also to make sure all unmanged resources are released.

regards
poor beggar

0
 

Author Comment

by:newbieweb
ID: 35037434
Does Application_End() not get called when running inside Visual Studio? It's called "Once per lifetime", and not when I end the application.

Any idea why not?
0
 

Author Comment

by:newbieweb
ID: 35037494
neither Application_End() not Dispose() is getting called.

0
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 

Author Comment

by:newbieweb
ID: 35037511
"nor"
0
 

Author Comment

by:newbieweb
ID: 35037534
Also, when I start in Visual Studio, Application_Start() is also not getting called. I see I need to read that link, but I do need to catch every time the session ends. What's a better function to that Application_End()?
0
 

Author Closing Comment

by:newbieweb
ID: 35037829
Thanks, here's my link to the EE question I placed where I am looking for a different function that's called when the browser closes:

http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/Q_26864364.html
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now