title: OnClientClick does not works on asp.net LinkButton
body: <p>I have an asp.net <code>linkbutton</code>, which contains the <code>OnClientClick</code> property, however the function within the <code>OnClientClick</code> never gets called, it directly jumps to <code>OnClick</code> function.<br/>
  Below are the 2 ways I am using LinkButton as:  </p>
  
  <pre><code>&lt;asp:LinkButton ID="btn" CssClass="button" Text="Browse Thumbnail" runat="server" 
       OnClientClick="return confirm('Are you sure you want to delete?');"&gt;
  &lt;/asp:LinkButton&gt;
  </code></pre>
  
  <p>and:</p>
  
  <pre><code>&lt;asp:LinkButton ID="lnkDelete" runat="server" 
       OnClientClick="return confirm('Are you sure you want to delete this slide?');" 
       CommandName="DeleteThumbnail" CommandArgument='&lt;%# Container.DataItemIndex %&gt;'&gt;
     &lt;asp:Image ImageUrl="~/images/delete.gif" ID="imgDelete" runat="server"&gt;&lt;/asp:Image&gt;  
  &lt;/asp:LinkButton&gt;
  </code></pre>
  
  <p>Both of the approaches does not works.</p>
  
  <p>Can anyone please provide some solution for the same.</p>