To avoid repeated operations, Refresh after the operation is indeed a common problem. After checking the information, we found that there was a very simple solution to this problem.
In Asp.net, form submission is generally in an event. After submission, some successful information is displayed in a friendly manner and then redirected to a page (possibly the original submission page, may be other pages ). Add response. Write ("<SCRIPT> alert ('success (or other message you want )! '); Window. Location. href = 'done. aspx'; </SCRIPT>!
Effect of refreshing: refresh done. aspx, which is equivalent to entering the page for the first time and does not submit forms repeatedly;
Effect of the backend: javascript receives events. After the alert information is displayed, the done. ASPX page is displayed again, and the form is not submitted repeatedly.