Static Singletons for ASP.NET Controls(west-wind.com)
submitted by
rstrahl(7226) 3 years, 10 months ago
When building generic ASP.NET Server controls that also provide a sort of API service to other custom controls or page level code, it's often necessary to ensure that only a single instance of a control exists, and that only that single instance of this control or component can be accessed in the context of an ASP.NET request. Using HttpContext and it's Item collection makes it easy to create reusable, cacheable instances and ensure you're only running a Singleton instance of it. read more...
|category: ASP.NET
|Views: 17
tags:
static Singleton ASP.NET another
Everyones tags:
Your Tags: