Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 55705
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T17:25:09+00:00 2026-05-10T17:25:09+00:00

Is there an event like onLoad? just at closing the Site (onClose)?

  • 0

Is there an event like onLoad?

just at closing the Site (onClose)?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T17:25:10+00:00Added an answer on May 10, 2026 at 5:25 pm

    Not in the sense that I suspect you’re thinking. All your code in ASP.net runs on the server which doesn’t inherently ‘know’ when the site is closed by the user. To achieve what you’re after, you’d need to use Javascript to handle the window.onunload / window.onbeforeunload events and trigger some form of request to the server.

    Take a look at http://developer.mozilla.org/en/DOM/window.onunload for more information on the window.onunload event.

    Update: If you’re using/able to use ASP.net AJAX, there’s some quite tidy wrappers there that provide you with a similar set of events/beahviours to the server-side page lifecycle. There’s a pretty decent tutorial from Stephen Walther on his blog.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

is there a way I can get a Load event for System.Windows.Forms.Control just like
Is there an event that fires when a WCF service gets started or shut
Is there an event I can use to tell if a child form has
Are there any prebuilt modules for this? Is there an event thats called everytime
I'm looking to log unhandled javascript exceptions. Is there an event that fires when
Is there a an event for ListViews that are activated when one of the
Is there a client event that I can use for when a DropDownList's data
Is there a WMI event you can subscribe to that will fire when a
Is there an equivalent event to LBN_SELCHANGE but for a listview?
I was working with a online game website. There are some event which call

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.