The answer is that in ASP.NET, static variables should be used instead of the Application object. It's something that I had never considered in terms of best practice, until I was asked this week. After a little digging on MSDN I came across the guidelines which state:
It comes down to the fact that the Application object is included for compatibility with classic ASP which had no application runtime like .NET.
You learn something new every day! More info can be found in the Knowledge Base article 312607.
Remember Me
Page rendered at 2/10/2012 4:19:36 AM (New Zealand Standard Time, UTC+12:00)
Disclaimer The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.