XML as a config file
-
I am creating a few modules for DNN and I want to use an XML file for each one to store the settings. Doing this would greatly reduce the pain of installing the module (not having to mess with DB scripts). I know there is a function that you can use to get the value of a key in the web.config file (can't remember its name...). How would I go about creating a similar function of my own?
// Steve McLenithan
Family Guy: Season 2 - Episode 8
-
I am creating a few modules for DNN and I want to use an XML file for each one to store the settings. Doing this would greatly reduce the pain of installing the module (not having to mess with DB scripts). I know there is a function that you can use to get the value of a key in the web.config file (can't remember its name...). How would I go about creating a similar function of my own?
// Steve McLenithan
Family Guy: Season 2 - Episode 8
Looks like I may have found an answer right here on CP: http://www.codeproject.com/csharp/app_config.asp[^] :doh: Looks pretty good unless anyone knows of a better solution.
// Steve McLenithan
Family Guy: Season 2 - Episode 8
-
Looks like I may have found an answer right here on CP: http://www.codeproject.com/csharp/app_config.asp[^] :doh: Looks pretty good unless anyone knows of a better solution.
// Steve McLenithan
Family Guy: Season 2 - Episode 8
Steve McLenithan wrote: Looks pretty good unless anyone knows of a better solution. If you want extensiblity for updating of the XML file check out my following article: An extension for a configuration settings class in .NET[^] -Nick Parker
-
Steve McLenithan wrote: Looks pretty good unless anyone knows of a better solution. If you want extensiblity for updating of the XML file check out my following article: An extension for a configuration settings class in .NET[^] -Nick Parker
Awesome! That is way better:cool:
// Steve McLenithan
Family Guy: Season 2 - Episode 8
-
Awesome! That is way better:cool:
// Steve McLenithan
Family Guy: Season 2 - Episode 8
Glad to help. :) -Nick Parker