Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="col-lg-4 col-md-4 hidden-sm hidden-xs">
- <asp:Label ID="TopDonator1" runat="server" Text="Bob" Visible="true" CssClass="TopDonators"></asp:Label>
- <asp:Label ID="Donation1" runat="server" Text="$250" Visible="true" CssClass="TopDonations"></asp:Label>
- </div>
- <div class="col-lg-4 col-md-4 hidden-sm hidden-xs">
- <asp:Label ID="TopDonator2" runat="server" Text="Terry" Visible="true" CssClass="TopDonators"></asp:Label>
- <asp:Label ID="Donation2" runat="server" Text="$650" Visible="true" CssClass="TopDonations"></asp:Label>
- </div>
- <div class="col-lg-4 col-md-4 hidden-sm hidden-xs">
- <asp:Label ID="TopDonator3" runat="server" Text="Jim" Visible="true" CssClass="TopDonators"></asp:Label>
- <asp:Label ID="Donation3" runat="server" Text="$2000" Visible="true" CssClass="TopDonations"></asp:Label>
- </div>
- int currentRow = 1;
- foreach (DataRow row in topDonors.Rows)
- {
- if (currentRow > 3)
- return;
- else
- {
- //Code to display name and donation amount goes here
- currentRow++;
- }
- }
- int currentRow = 1;
- foreach (DataRow row in topDonors.Rows)
- {
- if (currentRow > 3)
- return;
- else
- {
- TopDonator + currentRow = row["DonorName"].ToString();
- Donation + currentRow = row["Donation"].ToString();
- currentRow++;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement