G
Guest
Hello,
I have an application using an xml dataset to store app and user settings.
The problem I am having is related to writexml. I have a save button on my
application that updates the dataset and then using the writexml(...)
function saves the dataset to an xml file. I have noticed that the file does
not change everytime I click the save button. I get no errors but the
writexml function does not seem to be updating the xml file.
private void but_SaveAndExit_Click(object sender, System.EventArgs e)
{
this.returnDataSet.AcceptChanges();
this.returnDataSet.WriteXml("settings.xml");
}
Seems like it updates sometimes but not everytime. Is there something I'm
missing, or has anyone seen this problem with dataset.writexml?
Thanks,
Wes
I have an application using an xml dataset to store app and user settings.
The problem I am having is related to writexml. I have a save button on my
application that updates the dataset and then using the writexml(...)
function saves the dataset to an xml file. I have noticed that the file does
not change everytime I click the save button. I get no errors but the
writexml function does not seem to be updating the xml file.
private void but_SaveAndExit_Click(object sender, System.EventArgs e)
{
this.returnDataSet.AcceptChanges();
this.returnDataSet.WriteXml("settings.xml");
}
Seems like it updates sometimes but not everytime. Is there something I'm
missing, or has anyone seen this problem with dataset.writexml?
Thanks,
Wes