Welcome to MSDN Blogs Sign in | Join | Help

ASP.NET Soup To Nuts: Application State Managment webcast

Well, Tomorrow's session is all about state.  From Application State to View State... with a little Cookie and Session state thown in for good measure.

You can sign up for it here: ASP.NET Soup To Nuts: Application State Managment

Hope to see you there!

Bill

Published Sunday, February 05, 2006 8:47 PM by wsteele

Comments

Monday, February 06, 2006 1:15 PM by wsteele

# re: ASP.NET Soup To Nuts: Application State Managment webcast

I had a great question in my webcast Today about weather it was necessary to lock the application object and if so, how to do it.

When you have multiple simultaneous users writting to the same object, it might become necessary to lock it to avoid concurrency issues.  To lock it, the following code is necessary around the method you are preforming.

Application.Lock()
s = Application("Message") + "Application Started!<br>"
Application("Message") = s
Application.UnLock()

You can see, it's a very simple operation, and can make your application really sing along in a high volume system.

Bill
Anonymous comments are disabled
 
Page view tracker