Has there Page unload event available?

A

ABC

Has there Page unload event available? I want to write some codes to
release memory. But I can not found the Page_Unload event.
 
T

Teemu Keiski

What are you doing? Unless you use unmanaged resources, you shouldn't worry
about releasing memory as long as you close resources etc properly after you
are done with them.

But yes, Page has Unload event.
 
T

Teemu Keiski

If you mean

System.Resources.ResourceManager class

You don't need to worry about that, necessarily. Just set the reference to
null (Nothing in VB) after you've used it during a request.

But if you need to release .resources file opened by the RM (and if you open
them yourself). Shortly, if you don't use GetResourceSet method yourself,
don't need to worry about it. If you'd use it, you could call
ReleaseAllResources() to release them deterministically, otherwise uit is
Garbage collector's job.

And as an asnwer, it's not unmanagesd resource.
--
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
http://blogs.aspadvice.com/joteke
 

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,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top