每天定時傳送chart給user,雖然已經寫了前端網站要給使用者查詢,
但卻還是要發送mail…,想了半天,後端要去拉前端的chart實在太難搞了。
最後只有下面四種解法…
每天定時傳送chart給user,雖然已經寫了前端網站要給使用者查詢,
但卻還是要發送mail…,想了半天,後端要去拉前端的chart實在太難搞了。
最後只有下面四種解法…
一般我們要找集合內有沒有特定字串會用
goal.Contains("Date")
但要注意的是,這邊的Date一定要是完整的字串。不屬於like的效果。
但如果想要用like的效果,該如何做?
使用Linq的方式,
var dateFormat = goal.Where(p => p.Contains("Date"))
這樣等同使用like。會將字串內有Date的字取出。
附註:goal是一個字串集合
<div style="width:900px;overflow:hidden;">
<a href='#'><img src='https://xxxxxxx" style="width:900px;margin-top:-100px"/></a>
</div>
var ids = {1, 2, 3};
var query = from item in context.items
where ids.Contains( item.id )
select item;
來做查詢。
但是一使用LinqToExcel 這樣用舊直接掛了,出現
VisitSubQueryExpression method is not implemented
CODE {
display: block; /* fixes a strange ie margin bug */
font-family: Courier New;
font-size: 8pt;
overflow:auto;
background: #f0f0f0 url(http://klcintw.images.googlepages.com/Code_BG.gif) left top repeat-y;
border: 1px solid #ccc;
padding: 10px 10px 10px 21px;
max-height:200px;
line-height: 1.2em;
}
System.Diagnostics.Process.Start("explorer.exe", AppDomain.CurrentDomain.BaseDirectory)