Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
ASP .Net
Dataset/dataview update
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Guest, post: 506606"] Hi, This is probably a very simple question, but it's held me up for the last hour or two: I have a simple xml document and schema - all I am doing for the moment is loading the xml into a dataset built from the schema (primaryDriver1 in code), which has an associated dataview. A textbox (TextBox1) is bound to a field within the dataview: private void Page_Load(object sender, System.EventArgs e) { dataView1.AllowEdit = true; primaryDriver1.ReadXml("C:\\temp\\OriginalPerson.Xml"); TextBox1.DataBind(); } The member is displaying correctly after loading the page. On pressing a button, I just want to write a new Xml file showing any change the user may have made to the bound textbox: private void Button1_Click(object sender, System.EventArgs e) { if(primaryDriver1.HasChanges()) { DataSet ds = primaryDriver1.GetChanges(); ds.WriteXml("C:\\temp\\NewPerson.Xml"); primaryDriver1.AcceptChanges(); } } ...but it just doesn't work. Where's the glaring hole in my knowledge? Thanks in advance, Aid. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
ASP .Net
Dataset/dataview update
Top