I have a site where provide pseudo subdomain based sites. Each subdomain has a set of settings (ie. String name, string css, string title) that I need to access on all pages. What would be the best way of storing them for easy access?
I can’t use webconfig because different subdomains have their own settings collection so I store settings on sql server. I thought of caching all settings with different cache name but I am worried about the memory hog. Regardless using cache I understand I need to write some sort of class where I expose each setting as property.
Any ideas?
Why don’t you subclass the
PageorMasterPageto then expose your properties?In a C# file…
In the all the ASPX files…