473,757 Members | 10,708 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Updating Application Settings

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!
Nov 19 '05 #1
4 1615
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

--
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!)
"djmc" <dj**@discussio ns.microsoft.co m> wrote in message
news:58******** *************** ***********@mic rosoft.com...
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!

Nov 19 '05 #2
There's commercial products that let you do that.

HunterStone's Web.config Editor is one.

https://www.hunterstone.com/hsstore/...?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...
=============== =======

"djmc" <dj**@discussio ns.microsoft.co m> wrote in message
news:58******** *************** ***********@mic rosoft.com...
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!

Nov 19 '05 #3
Hi Karl,

Thanks for the response. I will have my webpage save data to an XML file.
I appreciate the tip.
"Karl Seguin" wrote:
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

--
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!)
"djmc" <dj**@discussio ns.microsoft.co m> wrote in message
news:58******** *************** ***********@mic rosoft.com...
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!


Nov 19 '05 #4
Hi Juan,

I agree that I'ld rather slap something quickly together myself, but I'll
still check out that commercial link. Hhaha, I can only imagine the problems
I'll get from this, but hopefully I can handle it. It's only a two page
site: 1 for configuring settings with 3 text boxes, and then another page to
display the results. Very very basic.

Anyways, thanks again for the advice.
"Juan T. Llibre" wrote:
There's commercial products that let you do that.

HunterStone's Web.config Editor is one.

https://www.hunterstone.com/hsstore/...?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...
=============== =======

"djmc" <dj**@discussio ns.microsoft.co m> wrote in message
news:58******** *************** ***********@mic rosoft.com...
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!


Nov 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
2405
by: Wes | last post by:
Hello, I have an application using an xml dataset to store app and user settings. The problem I am having is related to writexml. I have a save button on my application that updates the dataset and then using the writexml(...) function saves the dataset to an xml file. I have noticed that the file does not change everytime I click the save button. I get no errors but the writexml function does not seem to be updating the xml file. ...
1
2141
by: Matt | last post by:
Hi, I was wondering if anyone can tell me why dynamically updating the web.config file causes ASP.NET worker process to recycle and detroy all session states including variables. Is this a known bug or is it by design. Do we know why microsoft do not supply a method to write values to the web.config file. Thank you to anyone who can give me any clues to this problem. Regards,
2
1463
by: chris | last post by:
hi, i managed to populate my datagris and add a template colum to update the database. when i click the update button i get an error. is there something wrong with my code. ------------------code that populate the grid ar load Dim conPos As SqlConnection Dim cmdSel As SqlDataAdapter Dim ds As DataSet
7
4806
by: James | last post by:
Hi Has anybody had any experience of ASP.Net performance counters not updating. In the performance monitor application when I try to add the groups ASP.NET and ASP.NET Applications the counters all show 0. In addition, ASP.NET Applications does not show any of the ASP.NET instances that are running on the computer. The other counters for example % processor time work fine. The problem machine is a test server running Win2003. ...
3
6336
by: | last post by:
Hello, I have created an ASP.NET 2.0 application that utilized a Gridview Control to display and update/delete data. The problem I am having is that the gridview control is displaying the data correctly but it is not updating or deleting the rows. What I did was, in design view, added a gridview control and added an sqldatasource control. I configured the data source to update and delete. In the gridview tasks I selected enable...
14
2961
by: el_sid | last post by:
Our developers have experienced a problem with updating Web References in Visual Studio.NET 2003. Normally, when a web service class (.asmx) is created, updating the Web Reference will utilise the disco file to update the Corresponding proxy file and reflect the changes made to the web service. However, the results of doing this with out params is that the results seem
11
5773
by: bbasberg | last post by:
Hello, I have been struggling with this problem for DAYS and have googled my heart out as well as reading any books I could get my hands on but I cannot find any specific references to my problem. I have been able to successfully loop through a directory reading spreadsheets that insert records into an Access database. The spreadsheets in said directory are all of the same format but have different values in the cells. It's when I turned...
0
1334
by: davemills81 | last post by:
Hi, Does anyone know how to update the user or application settings of a dll after building? The problem I have is? I have recently developed a service in C# that attaches references a dll. Lets call it myDll.dll The dll has an app.config file that contains user and application
1
2374
by: jonbartlam | last post by:
Hi There I'm not sure what exactly is going wrong here. I'm writing an application that retreives a table from a database (tbl_internalfaults) and updates it. (Actually, just the status column will need updating with 'CLOSED' where necessary.) I have been trying to use the OLEDB command builder to build the statement to update the database however it is returning an error whenever I try to do this. I already have a dataset full of data, 1...
0
9489
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9298
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10072
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9906
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9737
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6562
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5329
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
3399
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2698
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.