H
hoest
Hi,
I'm developing a simple webapplication in C#. It stores data in
multiple XML-files. When I post data to the ASP.NET page, several XML
files will be updated. But when it failes, some kind of exception, I
want to rollback all actions.
Is this possible in ASP.NET, just like database Transactions?
try {
// do actions in several XML-files
}
catch(Exception){
// do rollback
}
finally {
// commit all changes to XML files on disk
}
Thanks!
I'm developing a simple webapplication in C#. It stores data in
multiple XML-files. When I post data to the ASP.NET page, several XML
files will be updated. But when it failes, some kind of exception, I
want to rollback all actions.
Is this possible in ASP.NET, just like database Transactions?
try {
// do actions in several XML-files
}
catch(Exception){
// do rollback
}
finally {
// commit all changes to XML files on disk
}
Thanks!