update dataset

P

pas07920

How can I update a dataset loaded with data from an xml file?

The structure of the xml:



<Poll>

<Choice>First Choice</Choice>

<Value>0</Value>

</Poll>
....
....
I think I want to load a dataset with the data, update the dataset, then
write it back to the xml file.
Question: how do I update the dataset? The choice will be made by selecting
a radio button
 
N

Nikolaus Hruska

try the WriteXml() method of your DataSet:

ex.
myDataSet.WriteXml("~/Components/FileName.xml")

--
Nikolaus R. Hruska
AASHTO Materials Reference Laboratory
National Institute of Standards and Technology
http://amrl.net
(e-mail address removed)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top