How can i make a configuration in INI and XML so that i won't hardcode the location of my database and other configurations, and i would just change it from a form within my program? Can anyone help me? thanks..
bornok15
3
Junior Poster in Training
Recommended Answers
Jump to PostUsually VS saves connectionstrings in .config file or .settings file which is xml formatted. to do it yourself vs main menu Project->Add new item->.settings file
Add your items in this settings file, you're now can modify your settings without modifying your code.
Avoid using ini files, xml is better.
Jump to PostSure, you've ml file and you also have System.Xml namespace which contains a lot of classes to add\remove and edit some nodes in xml files...
All 8 Replies
Ramy Mahrous
401
Postaholic
Featured Poster
bornok15
3
Junior Poster in Training
Ramy Mahrous
401
Postaholic
Featured Poster
bornok15
3
Junior Poster in Training
bwkeller
2
Junior Poster in Training
Ramy Mahrous
401
Postaholic
Featured Poster
bornok15
3
Junior Poster in Training
Ramy Mahrous
401
Postaholic
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.