title: Delete confirmation in asp.net gridview auto generate delete button click
body: <p>I need to show a confirmation message while clicking the auto generate delete button in the gridview.</p>
  
  <p>my code is here </p>
  
  <pre><code> AllowPaging="true" PageSize="10" OnClientClick="return confirm('Are you sure you want to delete this event?');"&gt;&lt;/asp:GridView&gt;
  
   protected void grdFraction_RowDeleting(object sender, GridViewDeleteEventArgs e)
      {
          int catid = int.Parse(grdFraction.DataKeys[e.RowIndex].Value.ToString());
          var delQuery = "delete from nano_WasteFraction where FID='" + catid + "'";
          SqlHelper.ExecuteNonQuery(GlobalSettings.DbDSN, CommandType.Text, delQuery);
          GridBind();
      }
  </code></pre>
  
  <p>I just add OnClientClick in gridviw.but it is not working.can any one help?</p>