我使用ASP.NET 3.5與VB.net 我有一個DataTable這樣的。ASP.NET VB.NET數據表需要做羣
RpID LocationServed
---- --------------
1 St. Louis
1 Baltimore
1 Columbus
2 Chicago
2 St. Charles
2 Peoria
2 Nashville
3 Dallas
3 Miami
3 Indianapolis
對於每個代表來說,我需要發送一個電子郵件,其中包含所有他們的位置。
我不太清楚怎麼做到這一點。我使用ASP.NET 4
我的計劃是有2個循環
<loop1 that has the group by of RepID>
<loop2 can go through the list of items for a given RepID >
strCity = do processing here that will compile a list of the cities for a given rep
</loop2 end>
<send out email a given RepID and then reset strCity >
<loop1 end>
不過不太清楚,最好的辦法就是解決這個什麼。
您需要發送多封電子郵件,以相同的RFID?如果這是爲什麼你需要分組! – 2012-08-03 15:14:08