Hi,
Without using a database, what is the best way to store application settings
that need to be updated by a webmaster? I would like to provide a
configuration screen for the webmasters who use my asp.net application. The
application does not use a database so I cannot store values there.
Currently, webmasters edit the web.config file to change settings, however
this application is about to be marketed towards non technical business
owners that will need to use a web page to administer this application.
Please, could someone recommend to me a new way to save my application
settings other than editing the web.config by hand?
Thanks!
Karl Seguin - 18 Jul 2005 12:40 GMT
Well, I'd still use an XML file and simply write a webpage that interfaces
to that. You can use the web-config for this, or create your own xml file.
Make sure that if you write your own, you cache the results since you don't
want to load up and parse the xml file each time you need a value.
Karl

Signature
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
> Hi,
>
[quoted text clipped - 12 lines]
>
> Thanks!
djmc - 18 Jul 2005 21:47 GMT
Hi Karl,
Thanks for the response. I will have my webpage save data to an XML file.
I appreciate the tip.
> Well, I'd still use an XML file and simply write a webpage that interfaces
> to that. You can use the web-config for this, or create your own xml file.
[quoted text clipped - 19 lines]
> >
> > Thanks!
Juan T. Llibre - 18 Jul 2005 12:49 GMT
There's commercial products that let you do that.
HunterStone's Web.config Editor is one.
https://www.hunterstone.com/hsstore/ProductDetails.aspx?productID=112
But, why pay good money for something you can slap together yourself ?
Write your own web.config editor, following the instructions at :
http://aspalliance.com/82
Disclaimer : if your application is going to be "marketed towards non technical
business owners that will need to use a web page to administer this application"
they are going to mess up the application in more ways than you can think of.
Make sure you allocate a lot of support time for it.
Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================
> Hi,
>
[quoted text clipped - 10 lines]
>
> Thanks!