protected void EGV_RowCommand(object sender, GridViewCommandEventArgs e) { switch (e.CommandName) { case "del2": int id = Convert.ToInt32(e.CommandArgument); tlpBll.P_Del(id); break; } MyBind(); }