Library sample chapters
A Preview of Active Server Pages+
- Introduction
- Introducing ASP+
- The Evolution of ASP
- Microsoft ISAPI Technologies
- The Versions of ASP
- Windows 2000, COM+ and ASP 3.0
- The Next Generation Web Services
- What Is the NGWS Framework?
- Common Intermediate Language
- Web Application Infrastructure
- How is ASP+ different?
- Why Do We Need a New Version?
- Advantages with ASP+
- Server-side HTML Controls
- Maintaining State
- Page VIEWSTATE
- Server-side Event Processing
- ASP+ Application Framework
- Enhanced Performance
- Control Families
- Intrinsic Controls
- List Controls
- Rich Controls
- Validation Controls
- The Global Configuration File
- Using Application State
- Using Session State
- New Security Management Features
- Getting Started
- Final Release
- Summary
Using Application State
As in previous versions, each ASP application running on a machine has a single instance of the Application object, which can be accessed by any pages within that application. Any values or object references remain valid as long as the application is 'alive'. However, when the global.asax file is edited, or when the last client Session object is destroyed, the Application object is also destroyed.
Using the Application object for storing simple values is useful, and there are the usual Lock and Unlock methods available to prevent users from corrupting values within it through concurrent updates to these values. This can, however, cause blocking to occur while one page waits to access the Application object while it is locked by another page.
Note that when a page finishes executing or times out, or when an un-handled error occurs, the Application object is automatically unlocked for that page.
Bear in mind the impact of storing large volumes of data in an Application object, as this can absorb resources that are required elsewhere. You also need to ensure that any objects you instantiate at Application-level scope are thread safe and can handle multiple concurrent accesses. Another limitation in the use of the Application object is that it is not maintained across a Web farm where multiple servers handle user requests for the same application, or in a 'Web garden' where the same application runs in multiple processes within a single, multi-processor machine.
Related articles
Related discussion
-
How can I execute server-side function using asp.net Ontextchanged orJavascript onchange?
by mamoru0916 (0 replies)
-
we search the company in India for program creation under the order
by anand.lv (1 replies)
-
handling special character in xslt's
by bussureddy82 (1 replies)
-
String was not recognized as a valid DateTime.
by buvanasubi (22 replies)
-
RadioButton inside Repeater with Javascript
by Aquila (1 replies)
Events coming up
-
Dec
3
An afternoon of SQL Server Data Services and ASP.NET Dynamic Data
Bradford, United Kingdom
This event is in association with Black Marble. In the morning Black Marble will be presenting on Microsoft "Oslo": The Future of Enterprise Applications. To find out more about this please follow the link on the right.
I'm not interested to think 4 these silly things. Keep going....
Reading all these articles on the web site is just a simple waisting of time!
This thread is for discussions of A Preview of Active Server Pages+.