|
 |
aspx thread: Creating XML files from a DataSet after form submission...
Message #1 by "Oliver, Wells" <WOliver@l...> on Wed, 16 Oct 2002 13:30:13 -0700
|
|
I have a page with a DataList which is provided data by a Dataset, pretty
standard. On the page, a user makes some changes and clicks save. I want an
XML file exported with the Dataset but with the _changed_ values. However, I
think (if I recall correctly) that the dataaset is lost and not retained,
therefore trying to create the XML file from it results in an
object-not-instantiated error.
Any tips on doing this sort of thing?
Wells Oliver
Web Application Programmer
Leviton Voice & Data
xxx-xxx-xxxx
http://www.levitonvoicedata.com
Message #2 by mvermef@h... on Mon, 21 Oct 2002 09:04:47
|
|
As long as you accept the changes to the dataset only before you do a
post back or you maintain a session or application object of the dataset
you will not loose the information stored within... Now on to the xml
file, you can control the file write by only allowing when changes
(modifies,deletes,adds) are performed on the dataset if one of these
events ocurrs then you map the folder on the server then WriteXML the
changes or the whole dataset your choice.. You could create a new
dataset with the changes only export to xml file then merge with the
existing dataset as another option...
Morgan
> I have a page with a DataList which is provided data by a Dataset,
pretty
standard. On the page, a user makes some changes and clicks save. I want
an
XML file exported with the Dataset but with the _changed_ values.
However, I
think (if I recall correctly) that the dataaset is lost and not retained,
therefore trying to create the XML file from it results in an
object-not-instantiated error.
Any tips on doing this sort of thing?
Wells Oliver
Web Application Programmer
Leviton Voice & Data
xxx-xxx-xxxx
http://www.levitonvoicedata.com
|
|
 |