Click here to Skip to main content
15,887,267 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I want to perform insert ,update ,delete operation locally (on page only ) these changes should not reflect on database until click on update button but when user
click on update button all changes should reflect on database.
Posted
Updated 30-Dec-12 16:24pm
v2
Comments
Sandeep Mewara 26-Dec-12 13:55pm    
And the issue is?
AshishChaudha 31-Dec-12 0:28am    
you want preview of data before click on update??

You can show what the data would look like locally, without updating to the database. That would involve keeping track of a sequence of events, and performing them all at once. you could store a copy of the data source in your session, along with a list of actions to perform. It would be messy and mostly pointless IMO.
 
Share this answer
 
Comments
_Amy 30-Dec-12 22:57pm    
Exactly.. +5!
 
Share this answer
 
Comments
Samar chougule 26-Dec-12 23:33pm    
Thanks for suggestion ,
I am not asking for simple insert ,update, delete operation with database, i have screen having list of Records i want to perform operation on these records(not directly on database) with help of insert ,update ,delete button and there is save button also ,click on save button will save all operation on database ,i trying this with help of disconnected architecture but not succeed yet ,Please help me if any have idea about to work around such scenario
You need to save the records/datatable in some objects like "Session". Then you can perform insert/update/delete operation in that datatable. On click of final save just update the values in database table. Here is my article to do that.
Sending DataTable to a Stored Procedure[^]


This will help you.
--Amit
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900