Page Lifecycle ASP.Net Tutorial

<%@ Page Language="vb" %>

   
      Unload event example
      
         Dim TheFile As System.IO.StreamReader
         Sub Page_Load()
            TheFile = System.IO.File.OpenText(MapPath("Init.aspx"))
            Message.Text = "
" & Server.HtmlEncode(TheFile.ReadToEnd()) & "
"
         End Sub
         Sub Page_Unload()
            TheFile.Close()
         End Sub