473,324 Members | 2,246 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

WriteXML caching on Pocket PC?

Hi all:

I have a simple app on both a windows app and on a pocket pc app, which
is one form with two textboxes and a button. The button basically
writes the textboxes to a dataset table, and then performs a WriteXML
to a file (partial code is below).

On the Windows App, the form behaves as I would think it behaves, i.e.
every time I fill out new information in the textboxes, it appends a
new row into the datatable and the entire datatable is then written to
the xml file.

On the Pocket PC App, however, when I reset my PDA, the first time I
click submit, it writes the xml to the file, but on subsequent
attempts, the xml file contains only the original xml post, even
between debugging sessions, even when I delete the xml file. The only
way that I can get the app to write the new data is to do a hard reset
of the PDA.

Anybody have any advise? TIA.

private void Form1_Load(object sender, System.EventArgs e)
{

DS1 = new DataSet("Dataset1");
Tab1 = new DataTable("Tab1");
DS1.Tables.Add(Tab1);
Tab1.Columns.Add("t1_pk",typeof(int));
Tab1.Columns.Add("t1_fname",typeof(string));
Tab1.Columns.Add("t1_lname",typeof(string));
Tab1.AcceptChanges();
}
private void button1_Click(object sender, System.EventArgs e)
{
DataRow dr = Tab1.NewRow();
dr["t1_pk"] = 1;
dr["t1_fname"] = text_fname.Text.ToString();
dr["t1_lname"] = text_lname.Text.ToString();
Tab1.Rows.Add(dr);
DS1.WriteXml(str_Directory + "tab1.xml");
}

Nov 12 '05 #1
0 1010

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: DraguVaso | last post by:
Hi, I should use XML to synchronize the data from different (VB.NET) applications, and I was just wondering which Overloads of these functions ( ReadXmlSchema, ReadXml and WriteXml) goes the...
3
by: Gordon Moore | last post by:
Hi, I'm new to using xml/xslt and although I can create an xml document using the dataset.WriteXml statement, and I have created an xslt to transform the xml into the output I want, I have to...
11
by: DraguVaso | last post by:
Hi, I should use XML to synchronize the data from different (VB.NET) applications, and I was just wondering which Overloads of these functions ( ReadXmlSchema, ReadXml and WriteXml) goes the...
11
by: DraguVaso | last post by:
Hi, I should use XML to synchronize the data from different (VB.NET) applications, and I was just wondering which Overloads of these functions ( ReadXmlSchema, ReadXml and WriteXml) goes the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.