Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Understanding Page_Unload
Message
From
05/11/2004 13:37:59
 
 
To
All
General information
Forum:
ASP.NET
Category:
Web forms
Title:
Understanding Page_Unload
Miscellaneous
Thread ID:
00958621
Message ID:
00958621
Views:
64
I would like to understand how the Page_Unload() is suppose to work. According to some research, the following is said:

The Page_Unload event happens when the page has finished being processed by ASP.NET, and before it's sent to the browser.

If that is true, then, why doesn't the following work:
    ' Perform any cleanup here!  
    Sub Page_Unload(ByVal Sender As System.Object, ByVal e As System.EventArgs)
        Response.Write("<SCRIPT>")
        Response.Write("alert(""The page has finished loading."")")
        Response.Write("</SCRIPT>")
    End Sub
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Next
Reply
Map
View

Click here to load this message in the networking platform