title: How to make double click & single click event for link button of Asp.net control?
body: <p>Consider the following:</p>
  
  <pre><code>protected void dgTask_RowDataBound(object sender, GridViewRowEventArgs e)
  {
      if (e.Row.RowType == DataControlRowType.DataRow)
      {
          LinkButton btn = (LinkButton)e.Row.Cells[4].FindControl("lnkBtnEdit");
  
          btn.Attributes.Add("onclick", "return Test();");
      }
  }
  </code></pre>
  
  <p>Instead of a single click, how can I make it double click while clicking on the link button?</p>
  
  <p><strong>Edited</strong></p>
  
  <p>I have tried with the solution presented by *competent_tech* but the problem is that in that case it will intercept the single click.</p>
  
  <p>I need to do some operation on single click and something else on double click. Please help me.</p>
  
  <p>Thanks</p>