Error!
Success!

Static Singletons for ASP.NET Controls

0
kicks

Static Singletons for ASP.NET Controls  (Unpublished)

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.


Kicked By:
Drop Kicked By: