//Click Delete Button protected void btnDel_Click(object sender, EventArgs e) { try { svr.SoftDeleteById(typeof(CRMCustomer), "CustID", hidID.Value); svr.AddAuditLog(long.Parse(hidID.Value), base.LoginUserID, "删除客户资料"); this.ShowDeleteOK(); Response.Redirect("frmCustomer.aspx"); } catch (Exception ex) { this.ShowMessage(ex.Message); log4netHelper.Error("", ex); } }