Maintaining values through postbacks, across pages etc. has always nicely been handled by asp2 and I for one am accustomed to the basic use of this functionality. Today however, I had the chance of expanding my knowledge and looking at maintaining values across Sessions.. using the Application object and the Global.asax file.
In my quest to find information on this file and methods such as Application_Start, Application_BeginRequest, Session_End and the like, my first source was MSDN. They have a nice write-up on the ASP.NET Application Life Cycle Overview and if you have half an hour or so, I recommend this read first. For me though, being the eager lad I am, I wanted to get immediately into it and this meant finding out (and getting in-your-face examples) about the Application object and Global.asax and it's methods.
For this information, I headed over to Working with the ASP.NET Global.asax file. This guy gives a brief description of the methods, when they're fired etc. and also gives some code examples in c# and vb. Good show!
tagged: professional // Comments [0]
Related posts:Select a random row in MS SQL...Regular expressionsVS2005, ASP.NET 2 & DLLs, DLLs..MS's ASP.NET and.. PHP2-way databinding cascading drop down lists within a FormViewApplicationName Property when customising providers
Disclaimer The posts on this blog are provided "AS IS" with no warranties. The opinions expressed herein are my own personal opinions and do not represent any other person's views in anyway.