Reputation: 2786
I have an ASP.NET application. It resides within another ASP.NET application. I put my DLL in the other apps bin folder and have a subdirectory with my aspx files. I can't edit the main app's Web.config.
So where can I store configuration settings? For example, this is an app that will get deployed to various clients. I want to store the client name used for display in the headers and such. And the location of a logo file.
Upvotes: 1
Views: 271
Reputation: 1794
You can use Settings.Settings
to store it. This example might help. You can have multiple settings files and access any of them, just as you would for any other class.
Upvotes: 0
Reputation: 455
You can also just create a Settings.config XML file and put it wherever you want (the .config extension will prevent it from being viewable through an HTTP request), then wrap it with a Settings class and talk to that Settings class from your application.
Upvotes: 0
Reputation: 25001
You can put a web.config file on the folder your ASPX files reside and .NET will take care of nesting them and aggregate its contents.
Upvotes: 2