title: I want to delete record from GridView.Before to this ask for confirmation like "Are you sure to delete?"
body: <p>I want to delete record from GridView.Before to this ask for confirmation like "Are you sure to delete?"</p>
  
  <p>I used command field in GridView,</p>
  
  <pre><code>&lt;asp:CommandField HeaderText="Delete" ShowDeleteButton="True" /&gt;
  </code></pre>
  
  <p>I wrote a function in javascript</p>
  
  <pre><code>function confirm_Delete()
  {
      var r = confirm("Are you sure you want to Remove this Record!");
  
      if (r == true)
      {
          alert("Record Deleted");
          return true;
      }
      else 
      {
          return false;
      }
  }
  </code></pre>
  
  <p>How I will call this on delete click.
  Kindly suggest !</p>