Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Accessing BL function on Browser close

Accessing BL function on Browser close

Scheduled Pinned Locked Moved ASP.NET
helpannouncement
7 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • 0 Offline
    0 Offline
    0905v49
    wrote on last edited by
    #1

    Hi In my application I have to update the status of a Employee on Log out method... But i am facing the problem while he closes the browser instead of login... I want to access BL function on Browser window closed. Please help me out in solving this issue Thanks in advance

    N V 2 Replies Last reply
    0
    • 0 0905v49

      Hi In my application I have to update the status of a Employee on Log out method... But i am facing the problem while he closes the browser instead of login... I want to access BL function on Browser window closed. Please help me out in solving this issue Thanks in advance

      N Offline
      N Offline
      N a v a n e e t h
      wrote on last edited by
      #2

      shru_09 wrote:

      I want to access BL function on Browser window closed.

      1 - do AJAX call to the server when window is closing. But it uses JS hence not reliable. 2 - You need to keep the last request time from the client on database. Run a scheduled job (sql server job) and update status of the employee if his last request time is more than your desired timeout limit. Second method seems to be more reliable to me.

      All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions

      0 1 Reply Last reply
      0
      • N N a v a n e e t h

        shru_09 wrote:

        I want to access BL function on Browser window closed.

        1 - do AJAX call to the server when window is closing. But it uses JS hence not reliable. 2 - You need to keep the last request time from the client on database. Run a scheduled job (sql server job) and update status of the employee if his last request time is more than your desired timeout limit. Second method seems to be more reliable to me.

        All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions

        0 Offline
        0 Offline
        0905v49
        wrote on last edited by
        #3

        I am using pl/sql... can we do the same in here..if so can u explain me in brief

        N 1 Reply Last reply
        0
        • 0 0905v49

          I am using pl/sql... can we do the same in here..if so can u explain me in brief

          N Offline
          N Offline
          N a v a n e e t h
          wrote on last edited by
          #4

          shru_09 wrote:

          pl/sql...

          Ohh, Oracle DB ? I guess it supports. I got this[^] on when I did a search.

          All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions

          0 1 Reply Last reply
          0
          • N N a v a n e e t h

            shru_09 wrote:

            pl/sql...

            Ohh, Oracle DB ? I guess it supports. I got this[^] on when I did a search.

            All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions

            0 Offline
            0 Offline
            0905v49
            wrote on last edited by
            #5

            can u explain me in brief about how to run scheduled job in oracle DB

            C 1 Reply Last reply
            0
            • 0 0905v49

              can u explain me in brief about how to run scheduled job in oracle DB

              C Offline
              C Offline
              Christian Graus
              wrote on last edited by
              #6

              here[^]

              Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

              1 Reply Last reply
              0
              • 0 0905v49

                Hi In my application I have to update the status of a Employee on Log out method... But i am facing the problem while he closes the browser instead of login... I want to access BL function on Browser window closed. Please help me out in solving this issue Thanks in advance

                V Offline
                V Offline
                Vasudevan Deepak Kumar
                wrote on last edited by
                #7

                Would this help you? http://www.dotnetjunkies.com/WebLog/familjones/archive/2004/04/06/10884.aspx[^]

                Vasudevan Deepak Kumar Personal Homepage
                Tech Gossips
                A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups