Page Unload Event

Results 1 to 2 of 2

Thread: Page Unload Event

  1. #1
    Join Date
    Dec 1969

    Default Page Unload Event

    Hi,<BR> When the Page_Unload event is called?I want to set the session value in the page_unload event of the page.How do I do it?How to test whether the control goes in the Page_Unload event or not?<BR>Thanks in advance.<BR><BR>Kshitij.

  2. #2
    Join Date
    Dec 1969

    Default Only way to test..

    .. the Page_Unload is by writing to a log (text file/database/whatever). Or, actually, just set a session variable and then write that session variable out on another page. If the session variable was populated, the page_unload was called. If it wasn&#039;t, then the page_unload event wasn&#039;t called.<BR><BR>You cannot write to the page because the Page_Unload is called AFTER the page is sent to the browser.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts