Update DataBase on clicking in button, after editing gridview (not automatically saving in DB, but a

Posted by gaponte69 on Stack Overflow See other posts from Stack Overflow or by gaponte69
Published on 2010-04-02T10:34:25Z Indexed on 2010/04/02 10:43 UTC
Read the original article Hit count: 352

0 vote down star

I am using GridView in asp .net and editing data with edit command field property (as we know after updating the edited row, we automatically update the database), and I want to use transactions (with begin to commit statement - including rollback) to commit this update query in database, after clicking in some button (after some events for example), not automatically to insert or update the edited data from grid directly to the DB...so I want to save them somewhere temporary (even many edited rows - not just one row) and then to confirm the transaction - to update the real tables in database...

Any suggestions are welcomed...

I've used some good links, but very helpful, like:

http://www.asp.net/learn/data-access/tutorial-63-cs.aspx

http://www.asp.net/learn/data-access/tutorial-66-cs.aspx etc... etc...

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about gridview