Every request into the webserver creates a new page object to handle that
one request. There are various events that fire on the page on each request
(Page_Init, Page_Load, etc). Page_Unload happens to be done of them. It's
meant to be a place to clean up any resources that you've not yet cleaned
up for the request. Typically, though, you probabaly should have already
cleaned up any resources by the time you get here (so in PageLoad, for example,
you typically open the DB connection, use it, then close it immediaetly).
So in the 4 years I've been doing ASP.NET development, I can't ever recall
using Page_Unload.
-Brock
DevelopMentor
http://staff.develop.com/ballen I'm coming to asp.net with mainly a desktop application background,
and
would be grateful if someone could explain what is meant by "unload"
in
asp.net . It's not the same as unload in a desktop application
context. What
kinds of things are typically done in various unload eventhandlers
(page
unload, form unload)?
Thanks
TR