title: How to modify the code to delete item after I confirm?
body: <p>My code make deleting item before I confirm it. How can I make a change to let it deletes item after I confirm it. Here is javascript code:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      var _source;
      var _popup;
  
      function showChild_Delete(source) {
          this._source = source;
          this._popup = $find('popupChild_Delete');
          this._popup.show();
      }
  
      function btnChild_Delete_Click() {  
          this._popup.hide();
          __doPostBack(this._source.name, '');
      }                     
  &lt;/script&gt;
  </code></pre>
  
  <p>asp.net code call js code:</p>
  
  <pre><code>&lt;asp:ImageButton ID="btnChild_Delete" runat="server" SkinID="delete" OnClientClick="showChild_Delete(this); return false;"
                                                      CommandName="deleteChild" CausesValidation="False" CommandArgument='&lt;%# Eval(childID) %&gt;' /&gt;
  </code></pre>
  
  <p>C# code:</p>
  
  <pre><code> if (e.CommandName == "deleteChild")
  
      {
          hashTable.Add(childID, e.CommandArgument);
          sqlData.GetDataTable(sproc_delChild, hashTable);
  
          gvChild.SelectedIndex = -1;
          pnlChild_Upload.Visible = false;
          this.upnlChildUpload.Update();
  
          RefreshChild();
      }
  </code></pre>
  
  <p>I will appreciate any help.</p>