//资产分配日志 private void BindZcFpLog() { string zcid = Request["id"].ToString(); U_ZcFPLogBU fp1 = new U_ZcFPLogBU(); DataSet ds1 = fp1.GetZcFpLogList(Request["id"]); this.Repeater2.DataSource = ds1; this.Repeater2.DataBind(); fp1.Close(); ds1.Dispose(); }
protected void Repeater2_ItemCommand(object source, RepeaterCommandEventArgs e) { if (e.Item.FindControl("seldoc") != null) { string id = (e.Item.FindControl("seldoc") as Label).Text.Trim(); if (e.CommandName == "delete") { U_ZcFPLogBU fp1 = new U_ZcFPLogBU(); fp1.DeleteData(id); fp1.Close(); this.BindZcFpLog(); } } }