protected void GrdFileApprove_RowCommand(object sender, GridViewCommandEventArgs e) { if (e.CommandName == "_Approve") { using (SqlConnection con = DataAccess.GetConnected()) { 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("approvefiles", con); cmd.CommandType = CommandType.StoredProcedure; int result = cmd.ExecuteNonQuery(); if (result != 0) { GrdFileApprove.bind(); } } catch (Exception ex) { } finally { con.Close(); } } } else if (e.CommandName == "_Reject") { } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)