I created a user control to handle comments on specific business objects such as contacts and clients. Works great ... except for one problem.
I am using a ListView control to edit and delete comments and a separate area on the same user control to add a new comment. All this is wrapped in UpdatePanel.

Here is my scenario ... the user adds a new comment ... the page postbacks, the data is saved successfully, and the ListView control is updated to show the new comment. Now, if the user updates the browser, he, of course, will return back and add one more repeated entry.
Any ideas on how best to prevent this?
source
share