how to stop resubmission of the same form RRS feed

  • Question

  • User-452285847 posted

    how to code to say no more changes are made after the form is submitted 

    Monday, April 16, 2018 2:14 AM


  • User283571144 posted

    Hi learningintern,

    According to your description, I couldn't understand your requirement clearly.

    Do you mean you want to prevent resubmit in the page?

    If this is your requirement, I suggest you could try to use javascript.

    More details, you could refer to below codes:

    <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
    <script type="text/javascript">
      var isSubmitted = false;
      function preventMultipleSubmissions() {
      if (!isSubmitted) {
         $('#<%=btnSubmit.ClientID %>').val('Submitting.. Plz Wait..');
        isSubmitted = true;
        return true;
      else {
        return false;
    <asp:TextBox ID="txtCounter" runat="server"></asp:TextBox>
    <asp:Button ID="btnSubmit" runat="server" Text="Submit" OnClientClick="return preventMultipleSubmissions();"  OnClick="btnSubmit_Click"  />

    If this is not your requriement, I suggest you could post more information.

    Best Regards,


    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, April 17, 2018 9:20 AM