protected void GridView1_OnRowCommand(object sender, GridViewCommandEventArgs e) { if (e.CommandName == "Remove") { int app_id = Convert.ToInt16(e.CommandArgument); input1.Inactive_Application(app_id); } if (e.CommandName == "Active") { int app_id = Convert.ToInt16(e.CommandArgument); input1.Active_Application(app_id); } Response.Redirect("~/Admin_Dash_1.aspx"); }