Connecting Tech Pros Worldwide Help | Site Map

Creating and updating app.exe.config

Sl1ver's Avatar
Member
 
Join Date: Mar 2009
Location: Cape Town, South Africa
Posts: 102
#1: Mar 18 '09
Create my app.exe.config file
e.g
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="MobileDBPath" value="\Program Files\database.sdf"/>
<add key="WebService" value="http://localhost/SyncService.asmx"/>
<add key="CSVPaths" value="\Program Files\Folder"/>
</appSettings>
</configuration>

This is what i need to do
i need info from 3 text boxes to be either added (if empty) or update (if there is already info in it). when the info is inserted to the text boxes they should press 1 update button that will update/add info to the 3 different keys. How would i go about doing that?
tlhintoq's Avatar
Moderator
 
Join Date: Mar 2008
Location: Arizona, USA
Posts: 1,745
#2: Mar 18 '09

re: Creating and updating app.exe.config


What have you coded so far?
In the work you've done so far what error(s) are you getting?
In your own trial and error, where is your code not behaving as expected?
Please show us what you've tried so far so we can make an effort to see where something went wrong.

Quote:

Originally Posted by Posting_Guidelines

Posting Homework or Coursework Questions and Answers
This site is not a place where you can get your homework and course work done for you. Ignoring the questionable morals of getting someone else to do your work towards a formal qualification you will learn a lot more by attempting the problem yourself, then asking for help with the bits that are not working. You will be more likely to get help if you appear to have made an attempt at the problem yourself.
If it appears that the question has just been pasted directly from a text book or coursework assignment our moderators have been instructed to meet this with a set response. This is a pre-written message asking you to make some attempt at the assignment yourself before asking questions about specific problems and referring you to this FAQ.
Do NOT post your complete source code. Remember, you found this site, so can your professors and tutors and they are likely to take a dim view if you hand in something that appears to be copied from this site. In most academic institutes the minimum response to copying of assignments is a 0 mark for the assignment in question. If you post your entire code your professor will not know it was your work, you may be penalised for copying from yourself.
If an expert requests that you provide more of your code then you can PM it to them, however please do not PM them your code unless requested.
Acceptable questions that students can ask are on functionality and theory or syntax corrections in small posted code snippets.
Please make sure you have asked an actual question worded in English outside of the text of your assignment that you have posted.
If you are answering someone who is working on a homework or coursework assignment then please remember
If you need to see a students full code for any reason request that it be forwarded to you directly by PM. However when replying try to word your reply so that it can post back to the forum.
Remember students are supposed to be learning. Posting complete solution replies is not helping them to learn the process of programming whatever language they use. In addition should their professor or tutor be watching and they use your solution they will likely get into trouble. You won't have helped them in any way. You need to act as a tutor, helping the poster to the understanding of how to solve the problem, not solving it for them.
If anyone does post a full code solution then the solution will be edited by the moderator appropriately and the person will be referred to these guidelines.
If at any time the complete solution to a coursework assignment is posted then it will be reduced or removed at the earliest opportunity. Anyone repeatedly posting complete solutions to coursework questions is liable to have stronger action taken against their account.

Sl1ver's Avatar
Member
 
Join Date: Mar 2009
Location: Cape Town, South Africa
Posts: 102
#3: Mar 19 '09

re: Creating and updating app.exe.config


I got it sorted man, created a new manager class that handles the events for me, now the app wont get to connect to the server, but ill sort it out. shot for the help
Reply