I have an asp.net application with c# code-behind. This application is a dispatch system which allows the user to create a ‘ride’ (stored in a microsoft sql db) which is modified through various processes as its status goes from waiting>enroute>completed etc.. I am trying to find the best way to ‘save’ the previous state of this ‘ride’ db row before it is modified, thus enabling the user to ‘undo’ their previous changes. What might be the best construct to accomplish this? I considered using view-state, but since there will be many many ‘rides’ there must be a better way..
I have an asp.net application with c# code-behind. This application is a dispatch system
Share
I would do this inside the database by creating a “history” table. Upon an “undo”, simply revert the data back to the history that was saved.