Actually i’m using xml files for my web pages configuration , xml files contain everything and all the controls/content is loadded through theese XML files and it works , theese config files can change on the fly , and web pages just change their layout/content no need to recompile/redeploy , and i must keep this way of doing things.
The problem is that i’m loading these files like 20 times per page and when i want to access them from my classes/ashx files , i just keep opening them. Is there a way to load xml Files as they were globalresources , and access content from my classes/cs/ashx files?
the problem with global resources is that if add them as emmbded
resources , i can’t change them without recompling them refering to
this post . Correct me if i’m wrong.
Thanks.
You can store your files in Cache, Session, Application or ViewState objects.
I think most preferably for is
Cacheobject, because you can add some dependencies based on files, and your objects will be automatically updated: