Click here to Skip to main content
15,867,308 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am developing a Client Server Application in .Net C# wherein i need to store all data fed into the Server Window into a file. The data is selected from various controls like Drop-down menu, text boxes,etc. and i am unaware of how to do this.
Any help will be greatly appreciated...
Thanks!!!
Posted

1 solution

Hello,
If you really must save it into file (not a db), then I would choose XML.
Detailed guide how to do it can be found here:
http://www.dotnetperls.com/xmlwriter[^]

This should really give you a hand for the starters.

Cheers!
 
Share this answer
 
Comments
sovit agarwal 22-Apr-14 7:29am    
Hi Modestas!!
Thanks for your reply...But i have one concern.
If at later point in time, if i want the same data to be populated against the fields,will it be possible that i get back the same window with same data using XML?
MK-Gii 22-Apr-14 7:45am    
Yes - it is possible. I've done the same thing with txt files before, but same approach can be applied with xml too. Exact guide can be found here:
http://www.dotnetperls.com/xmlreader
sovit agarwal 22-Apr-14 7:47am    
Can we like import this xml file and the window be loaded with all the data?
I guess thats not possible!!!
MK-Gii 22-Apr-14 8:25am    
It is possible - you can make the app load specific XML every time user starts it. But if I were you I would simply add a button "Load data" or something.
sovit agarwal 22-Apr-14 8:33am    
Thanks a lot !!!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900