473,387 Members | 1,569 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Modifying the app.config file

I a connection string stored in the app.config file. What is the best way, if
any, to modify the file to broaden a setting? For example, the default value
needs to be written on setup to look within an IP space location (the first
three parts of the octet). Later, if the user wants to see more, I want to
provide a method for them to add other IP spaces for their reader using that
connection string.

Wrong way or is there a better way?

Thanks,

E.
Nov 16 '05 #1
3 4350
Correction... it would be the select statement I need to modify for this one.
The connection string will not change now. Can such a default be added to the
..config file as a new key value? I'm looking on msdn, but not finding
something. Maybe the words I use to look for it.

E.

"Esteban404" wrote:
I a connection string stored in the app.config file. What is the best way, if
any, to modify the file to broaden a setting? For example, the default value
needs to be written on setup to look within an IP space location (the first
three parts of the octet). Later, if the user wants to see more, I want to
provide a method for them to add other IP spaces for their reader using that
connection string.

Wrong way or is there a better way?

Thanks,

E.

Nov 16 '05 #2
Ian Griffiths wrote a blog on this recently

http://www.interact-sw.co.uk/iangblo...5/savingconfig

Regards

Richard Blewett - DevelopMentor
http://www.dotnetconsult.co.uk/weblog
http://www.interact-sw.co.uk/iangblo...5/savingconfig

Correction... it would be the select statement I need to modify for this one.
The connection string will not change now. Can such a default be added to the
.config file as a new key value? I'm looking on msdn, but not finding
something. Maybe the words I use to look for it.

E.

"Esteban404" wrote:
I a connection string stored in the app.config file. What is the best way, if
any, to modify the file to broaden a setting? For example, the default value
needs to be written on setup to look within an IP space location (the first
three parts of the octet). Later, if the user wants to see more, I want to
provide a method for them to add other IP spaces for their reader using that
connection string.

Wrong way or is there a better way?

Thanks,

E.


Nov 16 '05 #3
So when creating the installer, create the application data folder for my app
and store it there? Sounds doable.

Thanks, Richard.

E.

"Richard Blewett [DevelopMentor]" wrote:
Ian Griffiths wrote a blog on this recently

http://www.interact-sw.co.uk/iangblo...5/savingconfig

Regards

Richard Blewett - DevelopMentor
http://www.dotnetconsult.co.uk/weblog
http://www.interact-sw.co.uk/iangblo...5/savingconfig

Correction... it would be the select statement I need to modify for this one.
The connection string will not change now. Can such a default be added to the
.config file as a new key value? I'm looking on msdn, but not finding
something. Maybe the words I use to look for it.

E.

"Esteban404" wrote:
> I a connection string stored in the app.config file. What is the best way, if
> any, to modify the file to broaden a setting? For example, the default value
> needs to be written on setup to look within an IP space location (the first
> three parts of the octet). Later, if the user wants to see more, I want to
> provide a method for them to add other IP spaces for their reader using that
> connection string.
>
> Wrong way or is there a better way?
>
> Thanks,
>
> E.


Nov 16 '05 #4

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

Similar topics

0
by: Roger Wilco | last post by:
I have a C++ application that uses an XML config file. It periodically needs to move a line (XML element) to the end of the file. I've written this using the C++ Xerces libraries (v2.5). The...
2
by: yvan | last post by:
I was wondering if someone here could help me with modifying this PHP template so that it does something very specific for me. My knowledge of PHP is very limited (I'm more of a Cold Fusion...
2
by: Roger Webb | last post by:
Hey. Is there a way to attach a satellite assembly to a specific programs' App.Config File? I have some assembly functions that get used in multiple programs... each configured in its own way. ...
8
by: vadim | last post by:
Hi, Is there a .Net control available that allows to write into web.config file appsettings section? The idea is to create encrypted user name and password for database connection and then...
17
by: Adam | last post by:
I have a small application that uses oledb to connect to a database, set up through the GUI wizards in vis studio. I am wanting to have the database location kept in an .ini file along with the...
3
by: crjunk | last post by:
If you change something in the Web.Config file, does the web application need to be rebuilt? I don't think you have to, but I just wanted to make sure that is correct. Thanks, CR Junk
3
by: Paul | last post by:
Hello All, I am working through the SAMS "ASP.NET 2.0 - Unleased" book to teach myself ASP.NET. It is a great book, but Chapter 21 "Using ASP.NET Membership" is causing me problems - or maybe I...
0
by: bvanderzanden | last post by:
I'm having a problem dynamically setting the url for the web service used in a dll. When I reference a web service it sets it to dynamic and creates a setting for the url. I have modified the url...
5
by: IUnknown | last post by:
Ok, we are all aware of the situation where modifying the folder structure (adding files, folders, deleting files, etc) will result in ASP.NET triggering a recompilation/restart of the application....
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...

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.