title: LinkButton, how prevent double click with "asp:LinkButton" ? or disabled "asp:LinkButton" after first click
body: <p>I am trying to avoid a double click, that is, the first click can disable the <code>asp: LinkButton</code> through the javascript functions, all this is in an <code>aspx</code> page.</p>
  
  <p>I have little experience in the front-end, if you can support me I'll thank you.</p>
  
  <p>I tried simply to use: <code>setAttribute, getElementById, attr</code>:</p>
  
  <pre><code>&lt;div class="modal-footer"&gt;
    &lt;div class="btn-group" role="group"&gt;
      &lt;asp:LinkButton ID="btnBringDataFlow" runat="server" CssClass="btn btn-danger" ToolTip="Cancel"
                      OnClick="btnBringDataFlow_Click" OnClientClick="preventDoubleClick()"&gt;Bring Data
      &lt;/asp:LinkButton&gt;
      &lt;asp:LinkButton ID="btnCancel" runat="server" CssClass="btn btn-primary" ToolTip="Cancel"&gt;Cancel&lt;/asp:LinkButton&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  
  
  &lt;script type="text/javascript"&gt;
    function disabledLinkBringDataFlow() {
  
      document.getElementById('btnBringDataFlow').setAttribute("disabled", "");
  
      //document.getElementById("btnBringDataFlow").disabled = true;
    }
  &lt;/script&gt;  
  </code></pre>
  
  <p>I hope to disable the <code>asp: LinkButton</code> after the first click to avoid double execution of the function.</p>