title: No response when click on approve button
body: <p>i have a project which is document managment system in this itry to apporve/reject documents and fr this 
  i create sp for approve and reject document</p>
  
  <pre><code>ALTER procedure [dbo].[sprejectapprove]
          @UserID int,
          @DocID int,
          @ApproveType nvarchar(50)
  as
      Insert into Approval(UserID,DocID,ApproveType)
      values(@UserID,@DocID,@ApproveType)
  </code></pre>
  
  <p>approve:</p>
  
  <pre><code> ALTER procedure [dbo].[spinsertapprove]
       @UserID int,
       @DocID int,
       @ApproveType nvarchar(50)
   as
       Insert into Approval(UserID,DocID,ApproveType)
       values(@UserID,@DocID,@ApproveType)
  </code></pre>
  
  <p>and code is</p>
  
  <pre><code>protected void GrdFileApprove_RowCommand(object sender, GridViewCommandEventArgs e)
  {
      if (e.CommandName == "_Approve")
      {
          //using (SqlConnection con = DataAccess.GetConnected())
          using (SqlConnection con = 
                   new SqlConnection(ConfigurationManager.ConnectionStrings["mydms"].ConnectionString))
          {
              try
              {
                  int rowindex = Convert.ToInt32(e.CommandArgument);
                  GridViewRow row = (GridViewRow)     
  
              ((Control)e.CommandSource).NamingContainer;
                  LinkButton Prove_Button =   
                 (LinkButton)row.FindControl("BtnApprove");
                  SqlCommand cmd = new SqlCommand("spinsertapprove", con);
                  cmd.CommandType = CommandType.StoredProcedure;
                  int result = cmd.ExecuteNonQuery();
                  if (result != 0)
                  {
                      GrdFileApprove.DataBind();
                  }
              }
  
              catch 
              {
                  apfi.Text = "Not Approve";
              }
              finally
              {
                  con.Close();
              }
          }
      }
  
  
      else if (e.CommandName == "_Reject")
      {
          using (SqlConnection con = 
                      new SqlConnection(ConfigurationManager.ConnectionStrings["mydms"].ConnectionString))
          {
              try
              {
                  int rowindex = Convert.ToInt32(e.CommandArgument);
                  GridViewRow row = (GridViewRow)
                  ((Control)e.CommandSource).NamingContainer;
                  LinkButton Prove_Button = (LinkButton)row.FindControl("Button1");
                  SqlCommand cmd = new SqlCommand("sprejectapprove", con);
                  cmd.CommandType = CommandType.StoredProcedure;
                  int result = cmd.ExecuteNonQuery();
                  if (result != 0)
                  {
                      GrdFileApprove.DataBind();
                  }
              }
  
              catch 
              {
                  apfi.Text = "Rejct";
              }
              finally
              {
                  con.Close();
              }
          }
      }
  }
  </code></pre>
  
  <p>when i debug the code and click on approve or reject button it can not further proceed and also not show me any error</p>
  
  <p>this is grdiview</p>
  
  <pre><code>&lt;div&gt;
          &lt;asp:ScriptManager ID="ScriptManager1" runat="server"/&gt;
           &lt;asp:UpdatePanel runat="server" ID="UPanle" 
              ondatabinding="UPanle_DataBinding_Click"&gt;
              &lt;ContentTemplate&gt;
             &lt;asp:GridView ID="GrdFileApprove" runat="server" 
              AutoGenerateColumns="false" 
                  onrowcommand="GrdFileApprove_RowCommand" 
                  onselectedindexchanged="GrdFileApprove_SelectedIndexChanged"&gt;
                 &lt;Columns&gt;
                     &lt;asp:TemplateField HeaderText="S no"&gt;
                         &lt;ItemTemplate&gt;
                             &lt;%# Container.DataItemIndex+1 %&gt;
                             &lt;asp:HiddenField runat="server" ID="HdnFileID" Value='&lt;%#
                         Eval("DocID") %&gt;' /&gt;
                         &lt;/ItemTemplate&gt;
                     &lt;/asp:TemplateField&gt;
                     &lt;asp:BoundField DataField="DocID" HeaderText="DocumentID"  /&gt;
                     &lt;asp:BoundField DataField="DocName" HeaderText="DocName"  /&gt;
                     &lt;asp:BoundField DataField="Uploadfile" HeaderText="File Name" /&gt;
                     &lt;asp:BoundField DataField="DocType" HeaderText="Document" /&gt;
                     &lt;asp:BoundField DataField="DepType" HeaderText="Department" /&gt;
                     &lt;asp:TemplateField HeaderText="S no"&gt;
                         &lt;ItemTemplate&gt;
                             &lt;asp:Button runat="server" Id="BtnApprove" 
                          CommandName="_Approve" 
                                  CommandArgument='&lt;%# Eval("DocID") %&gt;' 
                              Text="Aprrove"   /&gt;
                             &lt;asp:Button runat="server" Id="Button1"
                             CommandName="_Reject" 
                                  CommandArgument='&lt;%# Eval("DocID") %&gt;' Text="Reject" /&gt;
                         &lt;/ItemTemplate&gt;
                     &lt;/asp:TemplateField&gt;
                 &lt;/Columns&gt;
             &lt;/asp:GridView&gt;
         &lt;/ContentTemplate&gt;
  
  
          &lt;/asp:UpdatePanel&gt; 
  
  &lt;/div&gt;
  </code></pre>