I wrote an application in ASP.net that allows a user to add records to a database. The page is configured so that when the user adds the record, the identification number of the newly added record is set in the session, the Response.Redirects page to the "Thank you for sending" page, then redirects back to the original page to allow further changes. Users can also use the back button on this screen to return to the original page for adding entries, which allows them to edit the data.
However, I found that storing the identifier in the session is not a very good solution, as the user may try to create two documents in different tabs or windows. I also tried setting the identifier in the literal control, but this causes a problem when the user uses the back button, the literal control is not set to the identifier, and new entries are added instead of being edited.
Is there any solution for this?
source share