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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. Web Application Startup and Shutdown

Web Application Startup and Shutdown

Scheduled Pinned Locked Moved ASP.NET
csharpasp-nettutorialquestion
4 Posts 3 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.
  • S Offline
    S Offline
    Serge Lobko Lobanovsky
    wrote on last edited by
    #1

    Hello, Can anybody give me a hint or a link to an article on how to intercept ASP.NET application startup and shutdown to process some specific stuff that must occur only at these times? Thanx in advance, Regards, Serge

    M D 2 Replies Last reply
    0
    • S Serge Lobko Lobanovsky

      Hello, Can anybody give me a hint or a link to an article on how to intercept ASP.NET application startup and shutdown to process some specific stuff that must occur only at these times? Thanx in advance, Regards, Serge

      M Offline
      M Offline
      Mazdak
      wrote on last edited by
      #2

      Overriden Application_Start and Application_End in your glocal.ascx.cs files. Mazy No sig. available now.

      S 1 Reply Last reply
      0
      • M Mazdak

        Overriden Application_Start and Application_End in your glocal.ascx.cs files. Mazy No sig. available now.

        S Offline
        S Offline
        Serge Lobko Lobanovsky
        wrote on last edited by
        #3

        thanx... it was really a silly question, i know about this stuff from ASP time, but i wasnt able to find any info about it in MSDN which ships with VS.NET, only references to ASP pages :( Regards, Serge (Logic Software)

        1 Reply Last reply
        0
        • S Serge Lobko Lobanovsky

          Hello, Can anybody give me a hint or a link to an article on how to intercept ASP.NET application startup and shutdown to process some specific stuff that must occur only at these times? Thanx in advance, Regards, Serge

          D Offline
          D Offline
          David Flores
          wrote on last edited by
          #4

          I am not sure exactly what you mean, but in the global.asax file you have the following functions (VB.NET) Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs) ' Fires when the application is started End Sub Sub Session_Start(ByVal sender As Object, ByVal e As EventArgs) ' Fires when the session is started End Sub Sub Application_BeginRequest(ByVal sender As Object, ByVal e As EventArgs) ' Fires at the beginning of each request End Sub Sub Application_AuthenticateRequest(ByVal sender As Object, ByVal e As EventArgs) ' Fires upon attempting to authenticate the use End Sub Sub Application_Error(ByVal sender As Object, ByVal e As EventArgs) ' Fires when an error occurs End Sub Sub Session_End(ByVal sender As Object, ByVal e As EventArgs) ' Fires when the session ends End Sub Sub Application_End(ByVal sender As Object, ByVal e As EventArgs) ' Fires when the application ends End Sub Application_Start and Application_End maybe the functions that you are looking for.

          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