I have a simple web form that has several fields and a gridview on it. I also have a save and cancel button.
I would like to undo what was done with the form data when the user clicks on undo. It's easy enough with fields, since changes to the gridview happen in real time with respect to the database, I donβt know how to undo functionality.
I thought about saving the changes to the gridview in the viewstate, but I would prefer not because of the extra space requirement.
I also thought of a temporary table in which the changes would be saved, and then rolling them back as needed.
Does anyone have an idea how to undo functionality from a form?
source share