Which event is fired in asp.net when the browser is closed

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Gouri.Mahajan7@gmail.com

    Which event is fired in asp.net when the browser is closed

    Hello,
    I am new to asp.net. Can anybody please tell me which event
    is fired when we close the browser. I want to
    remove some resources when the browser close button is pressed.
    Thanks in advance.

    Regards,
    Gouri.

  • Juan T. Llibre

    #2
    Re: Which event is fired in asp.net when the browser is closed

    re:
    !Can anybody please tell me which event is fired when we close the browser

    No event is fired.
    ASP.NET works server-side. The browser is client-side.

    The server doesn't know what the browser does.



    Juan T. Llibre, asp.net MVP
    asp.net faq : http://asp.net.do/faq/
    foros de asp.net, en español : http://asp.net.do/foros/
    =============== =============== ========
    <Gouri.Mahajan7 @gmail.comwrote in message news:3826edae-f5b0-4f4b-ba63-2c8aebd6ac7c@w8 g2000prd.google groups.com...
    Hello,
    I am new to asp.net. Can anybody please tell me which event
    is fired when we close the browser. I want to
    remove some resources when the browser close button is pressed.
    Thanks in advance.
    >
    Regards,
    Gouri.
    >

    Comment

    • Gouri.Mahajan7@gmail.com

      #3
      Re: Which event is fired in asp.net when the browser is closed

      On May 22, 1:35 pm, "Juan T. Llibre" <nomailrepl...@ nowhere.com>
      wrote:
      re:
      !Can anybody please tell me which event is fired when we close the browser
      >
      No event is fired.
      ASP.NET works server-side. The browser is client-side.
      >
      The server doesn't know what the browser does.
      >
      Juan T. Llibre, asp.net MVP
      asp.net faq :http://asp.net.do/faq/
      foros de asp.net, en español :http://asp.net.do/foros/
      =============== =============== ========
      >
      >
      >
      <Gouri.Mahaj... @gmail.comwrote in messagenews:382 6edae-f5b0-4f4b-ba63-2c8aebd6ac7c@w8 g2000prd.google groups.com...
      Hello,
               I am new to asp.net. Can anybody please tell me whichevent
      is fired when we close the browser. I want to
      remove some resources when the browser close button is pressed.
      Thanks in advance.
      >
      Regards,
      Gouri.- Hide quoted text -
      >
      - Show quoted text -
      Can you please tell me is there any other way to find out the page is
      getting closed so that i can remove the resources before that.

      Comment

      • Juan T. Llibre

        #4
        Re: Which event is fired in asp.net when the browser is closed

        re:
        !Can you please tell me is there any other way to find out the page
        !is getting closed so that i can remove the resources before that

        You can't.
        No server web platform in the world can know when a browser was closed.

        There's an "onunload" page property, but for all practical purposes
        it's useless because it fires for *every* page, and not only when
        a browser is closed.




        Juan T. Llibre, asp.net MVP
        asp.net faq : http://asp.net.do/faq/
        foros de asp.net, en español : http://asp.net.do/foros/
        =============== =============== ========
        <Gouri.Mahajan7 @gmail.comwrote in message news:51cc8d50-a261-484e-9a9a-6b75c73da982@z1 6g2000prn.googl egroups.com...
        On May 22, 1:35 pm, "Juan T. Llibre" <nomailrepl...@ nowhere.com>
        wrote:
        re:
        !Can anybody please tell me which event is fired when we close the browser
        >
        No event is fired.
        ASP.NET works server-side. The browser is client-side.
        >
        The server doesn't know what the browser does.
        >
        Juan T. Llibre, asp.net MVP
        asp.net faq :http://asp.net.do/faq/
        foros de asp.net, en español :http://asp.net.do/foros/
        =============== =============== ========
        >
        >
        >
        <Gouri.Mahaj... @gmail.comwrote in messagenews:382 6edae-f5b0-4f4b-ba63-2c8aebd6ac7c@w8 g2000prd.google groups.com...
        Hello,
        I am new to asp.net. Can anybody please tell me which event
        is fired when we close the browser. I want to
        remove some resources when the browser close button is pressed.
        Thanks in advance.
        >
        Regards,
        Gouri.- Hide quoted text -
        >
        - Show quoted text -
        Can you please tell me is there any other way to find out the page is
        getting closed so that i can remove the resources before that.


        Comment

        Working...