Avoid button click


 <script type="text/javascript">
      function DisableButton() {
          document.getElementById("<%=contact_submit.ClientID %>").disabled = true;
      }
      window.onbeforeunload = DisableButton;
    </script>



<asp:Button type="button" id="contact_submit" class="btn btn-dm" runat="server" onserverclick="btnSendMessages_Click" validationgroup="ContactUSGroup" Text="SEND YOUR REQUEST"/>

Comments

Popular posts from this blog

Create Schema Using C# Asp .Net Dynamically.

How to set Transaction and Roll Back using Entity Framework in C# Code.

How to post image in blob using Windows Azure.