title: How to call JavaScript function in GridView Command Field?
body: <p>I have return one Javascript function which asks the confirm message to the user. 
  The JavaScript functions is</p>
  
  <pre><code>    function ConfirmOnDelete() {
      if (confirm("Are you sure to delete?"))
          return true;
      else
          return false;
  </code></pre>
  
  <p>and GridView is like below:</p>
  
  <pre><code>    &lt;asp:CommandField HeaderText="Delete" ShowDeleteButton="True" /&gt;
  </code></pre>
  
  <p>Here I want to call the JavaScript function when user clicking the Delete in the GridView Command Field.
  How to call this?</p>