I have a complex class for configuration, which holds all the configuration data, and I’m reading this class in a separate class that exists in the business class library. In my web project, I am reading this in a pagebase class – which all my aspx pages inherit. I have the class as a property in pagebase, and I can access it in my aspx pages fine. But how do I access this in the usercontrols? Is there a global way to keep this class in memory (I can’t have it as static, because its different per user) and I’d rather not use sessions. I was thinking there is a way to have it as part of a global properties somewhere, so I can always use it anywhere in the web project.
I have a complex class for configuration, which holds all the configuration data, and
Share
If its on all your pages you can just cast the page object to your base page and access the property.
inside a usercontrol.