protected void RPT_ItemCommand(object source, RepeaterCommandEventArgs e) { switch (e.CommandName) { case "del2": pubMod = pubBll.SelReturnModel(Mid); int id = Convert.ToInt32(e.CommandArgument); pubBll.DelComments(pubMod.PubTableName, id); break; } MyBind(); }