The ProgrammersTalk Community
Forum Register Search Today's Posts Mark Forums Read
Register

Go Back   The ProgrammersTalk Community > General Programming > C#


Welcome to the The ProgrammersTalk Community forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.
Closed Thread
 
LinkBack Thread Tools    Display Modes   
  #1 (permalink)  
Old 08-16-2007, 02:52 PM
TeraTask's Avatar
TeraTask TeraTask is offline
PT Staff*
Awards Showcase
Quality Tutorial Quality Tutorial Quality Tutorial 
Total Awards: 3
Join Date: Jun 2007
Location: Reno, NV
Posts: 416
iTrader: (0)
TeraTask will become famous soon enoughTeraTask will become famous soon enoughTeraTask will become famous soon enoughTeraTask will become famous soon enoughTeraTask will become famous soon enoughTeraTask will become famous soon enough
[SOLVED] DataSets, DataTables, and trying to save data

Well, I'm in way, way, way over my head with C#. I'm creating an app for a client which reads logins into a site, reads a webpage, extracts data from it, downloads PDFs from the site according to the extracted data, allows the user to view the PDFs, saves the extracted data and some user-entered data into a file, and fetches some more information after that. Phew! I've been going along quite well for the last week and even have the PDFs being downloaded via multithreading (thanks to copy-and-paste-and-tweak code), but I'm stuck on trying to save the data. I have figured out how to create a DataSet and add a DataTable. I can then add an interface to that table with the ability to add, edit, and delete rows. I can loop through the data and do whatever I want with it, but I can't seem to get it to save the data so that I can load it back in. Here's the details:

1) A database is not allowed.
2) I've added a save button to the form which is supposed to save the data when clicked. Here's the body (where nodWorkingData is the table name):

Code:
            try
            {
                this.nodWorkingData.AcceptChanges();
            }
            catch (Exception ex)
            {
                MessageBox.Show("Error");
            }
3) I'm trying to load the data using the Load command, but it expects an IDataReader Interface and that's where I get totally lost. I can't even figure out where the data is saved from step 2.

Can anyone help me?


Thanks a billion in advance!

__________________
Jeremy Miller
Content Farmer - Optimized Automated Blog Posting

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!
  #2 (permalink)  
Old 08-16-2007, 04:41 PM
TeraTask's Avatar
TeraTask TeraTask is offline
PT Staff*
Awards Showcase
Quality Tutorial Quality Tutorial Quality Tutorial 
Total Awards: 3
Join Date: Jun 2007
Location: Reno, NV
Posts: 416
iTrader: (0)
TeraTask will become famous soon enoughTeraTask will become famous soon enoughTeraTask will become famous soon enoughTeraTask will become famous soon enoughTeraTask will become famous soon enoughTeraTask will become famous soon enough
OK. I got it. I should have used WriteXml and ReadXml.

__________________
Jeremy Miller
Content Farmer - Optimized Automated Blog Posting

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!
Closed Thread


Thread Tools
Display Modes

   Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 05:33 PM. Powered by vBulletin
Copyright © 2000 - 2007, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO © 2007 ProgrammersTalk Sedo - Buy and Sell Domain Names and Websites project info: programmerstalk.net Statistics for project programmerstalk.net etracker® web controlling instead of log file analysis


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50