Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / July 2007

Tip: Looking for answers? Try searching our database.

XmlDataSource

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Flyguy - 25 Jul 2007 11:12 GMT
I am using an XmlDataSource to modify data in an xml file located on my web
server.  I want to be able to rollback changes made to the XmlDataSource
since the last time I used the save method.  How can I do this?
Walter Wang [MSFT] - 26 Jul 2007 01:25 GMT
Hi,

When you use DataFile property to specify a xml file for the XmlDataSource
control, it will load the xml file into an internal XmlDocument (you can
get this document by using the XmlDataSource's GetXmlDocument method). When
you call XmlDataSource.Save method, the internal XmlDocument will be saved
to the file specified by the DataFile property (the file will be
overwritten).

I understand your objective here is to "rollback" the changes made to the
XmlDataSource since the last time you used the save method.

Based on my understanding, to "rollback" the changes, you just need to
re-bind the XmlDataSource, this will make it to re-read from the xml file
specified by property DataFile.

I hope I haven't misunderstood anything. Please feel free to let me know if
there's anything unclear. Thanks.

Regards,
Walter Wang (wawang@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.