title: asp.net Global.asax Application_Start
body: <p>I'm using Visual Studio 2010 with framework 3.5.</p>
  
  <p>I have created an asp.net website from scratch and I have added an Global.asax to the project.</p>
  
  <p>On global.asax, there is the Application_Start event. I have placed a breakpoint on that event and started debugging the website and I noticed it hits the breakpoint. But if I closed the website and start debuggin again the breakpoint is not hit. If I stop the ASP.NET Development Server and start debugging again, then the breakpoint is hit again.</p>
  
  <p>So, reading on this article:</p>
  
  <p><a href="http://www.techrepublic.com/article/working-with-the-aspnet-globalasax-file/5771721" rel="nofollow">http://www.techrepublic.com/article/working-with-the-aspnet-globalasax-file/5771721</a></p>
  
  <p>it says: <strong>The Application_Init and Application_Start events are fired once when the application is first started.</strong> </p>
  
  <p>So I'm guessing that means when the application is first started with the server. I guess the same thing would happen with IIS, one would need to restart the IIS so that the Application_Start is fired again.</p>
  
  <p>If this is the case with global.asax, then I can't use it.</p>
  
  <p>The thing is I want a piece of code to be executed every time a specific page on my website is accessed.</p>
  
  <p>In order to accomplish this I would need to put that code on my master page or in the specific page of the site?</p>
  
  <p>Thanks...</p>