i want get data from mssql, after get data put my table inside but i have a some problem,same data getting two times
StringBuilder sb = new StringBuilder();
foreach (Coffee coffee in coffeeList)
{
sb.Append(string.Format(@"
| Name : | {0} | Name : | {0} | ||
| Type: | {1} | Type: | {1} | ||
| Price: | {2} | Price: | {2} | ||
| Roast: | {3} | Roast: | {3} | ||
| Origin: | {4} | Origin: | {4} | ||
| Description: | {5} | Description: | {5} |
products.Name, products.Type, products.Price, products.Roast, products.Country, products.Review, products.Image));
}


Nanhe SiddiqueRank #1,103 · 1.7K reputationPosted May 19, 2015, 8:35 PM EDT
Ekrem TapanRank #1,694 · 900 reputationPosted May 19, 2015, 9:13 PM EDT