I am working on an asp.net webform project. It has an edit form which displays member data retrieved from database in several text and combo boxes. The user can edit any of those items. After edit, when they click the “verify” button, it will take them ro verifyAndSave.aspx page through Server.Transfer method. This new page has two buttons: Save and Cancel. When they click the Cancel button, it should take them back to the earlier page with all the edited data intact. For the cancel button’s click event, in the code behind, I am again using Server.transfer. It goes to the earlier page but the problem is that it shouws only the data from the database. Any edits made by the user is gone. However if I use the back button, I see all the edits made by the user. please let me know how to implement the Cancel button correctly.
Thansk
ASP.NET Button code would look like this:
If you want to do it from code behind, you can try the following: