Could someone help with a quick alternate way to jquery to display alternate rows with different background colors? Trying with a foreach loop but not having much luck. Many thanks!!!
<div class="acgridhdrstart">Account Name</div>
<div class="acgridhdr">Account Region</div>
<div class="acgridhdr">Account Representative</div>
<div class="acgridhdr">Peer Partner</div>
<div class="acgridhdr">Last Updated</div>
@while (myreader.Read())
{
<div class="bgcol">
<span class="acgridstart">@myreader["acname"]</span>
<span class="acgrid">@myreader["acregion"]</span>
<span class="acgrid">@myreader["acrep"]</span>
<span class="acgrid">@myreader["acpeer"]</span>
<span class="acgrid">@myreader["lastupdated"]</span>
</div>
}
I ended up using SQLDataAdapter and returned the data as follows: