protected void Repeater1_ItemCommand(object source, RepeaterCommandEventArgs e) { if (e.Item.FindControl("seldoc") != null) { string id = ((Label)e.Item.FindControl("seldoc")).Text; U_ZCTCBU tc1 = new U_ZCTCBU(); if (e.CommandName == "delete") { tc1.DelteTC(id); this.BindTC(tc1); } else if (e.CommandName == "update") { tc1.EditTcForstatus(id); this.BindTC(tc1); } else { bool first = tc1.CopyZcTctoZc(this.Bid.Text.Trim(), id, "0"); if (first) { Util.alert(this.Page, "恭喜您,复制成功!"); } else { Util.alert(this.Page, "很遗憾,复制失败!"); } this.BindTC(tc1); } tc1.Close(); } }