I am familiar with the try {} finally {} template, using the use () {} template as methods to call Dispose (), but for an ASP.NET page, is it also safe to delete objects created in the page area in the Page_Unload event? Does it make sense to override the Page Dispose () method?
I'm not sure which code triggers the Page_Unload event or the Dispose () method, so I donβt know which guarantees will be met.
Matthew martin
source share