protected void Repeater1_ItemCommand(object source, RepeaterCommandEventArgs e) { if (e.Item.FindControl("dzyw") != null) { string id = ((Label)e.Item.FindControl("dzyw")).Text; if (e.CommandName == "delete") { try { U_ZCBU zc3 = new U_ZCBU(); zc3.DelDZYWInfo(id); this.BindDZYW(); zc3.Close(); } catch (Exception err1) { Util.alert(this.Page, err1.Message); } } else { Context.Items["id"] = id; if (Request["id"] != null) { Context.Items["zcid"] = Request["id"].ToString(); } Context.Items["wpkind"] = e.CommandArgument.ToString(); Server.Transfer("EditZcDB.aspx", false); } } }