protected void GvUsersOnRowCommand(object sender, GridViewCommandEventArgs e) { if (e.CommandName.Equals("UpdateUser")) { var userUpdated = PageDataService.DeleteUserByAdoNet(Convert.ToInt32(e.CommandArgument)); if (userUpdated) { Response.Redirect(Request.RawUrl, false); } } }