CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2005
    Posts
    176

    browser is closing?

    Dont know if im posting in the right place!!

    Im creating an application using Web Forms in VB.NET attached to a Access DB.

    I would like to make some changes in my DB when the user closes his browser.
    How can I know if the browser is closing?

  2. #2
    Join Date
    Jan 2005
    Posts
    70

    Re: browser is closing?

    This is how it works in C#/ASP.Net - maybe it is the same in VB.Net.

    I don't believe you can trap the browser closing event. However, you can do your database stuff in Session_End event in the Global.asax file, which will be called when the timeout period expires. Even better, you can provide a signout feature on your page that will abandon the session and call Session_End immediately.

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured