Solved

I need to call Application_End()

Posted on 2011-03-04
6
465 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

688 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