Alright, second blonde moment for the day!

I've figured out how to use a repeater field, now what I want to achieve is a "total" figure for the column, and this figure needs to appear the footer.

Back in ASP 3.0, I would simply create a variable, and on every step as I looped through the recordset, I would add the current to the variable, including its original value. At the end, I'd have the total. Apparently I can't figure out how to do the same thing in ASP.NET.

This is what I'm doing (which doesn't work):

VB Code:
  1. <asp:SqlDataSource ID="SqlDS_TransactionDetail" runat="server"
  2.         ConnectionString="<%$ ConnectionStrings:ArrowConnectionString %>"
  3.        
  4.         SelectCommand="SELECT [QUANTITY], [DESCRIPTION], [SELLING_PRICE], [NET_VALUE], [TAX_VALUE] FROM [ARROW_TO_CRM_DEBTOR_CHECKDETAIL] WHERE (([CRM_GUID] = @CRM_GUID) AND ([REF_ARROW] = @REF_ARROW))">
  5.         <SelectParameters>
  6.             <asp:Parameter Name="CRM_GUID" Type="String" />
  7.             <asp:Parameter Name="REF_ARROW" Type="String" />
  8.         </SelectParameters>
  9.     </asp:SqlDataSource>
  10.     <table>
  11.     <asp:Repeater ID="Repeater1" runat="server" DataSourceID="SqlDS_TransactionDetail">
  12.         <HeaderTemplate>
  13.         <tr>  
  14.         <td>
  15.         NET_VALUE
  16.         </td>
  17.         </tr>
  18.         </HeaderTemplate>
  19.         <ItemTemplate>
  20.         <tr>  
  21.         <td>
  22.         <%#Eval("NET_VALUE")%>
  23.         <%intNetValueTotal = Eval("NET_VALUE") + Eval("NET_VALUE")%>
  24.         </td>
  25.         </tr>
  26.         </ItemTemplate>
  27.         <FooterTemplate>
  28.         <tr>
  29.         <td>
  30.         Total: <%=intNetValueTotal%>
  31.         </td>
  32.         </tr>
  33.         </FooterTemplate>
  34.     </asp:Repeater>
  35.     </table>

Does anyone understand what I am trying to achieve?

Help!!!!

Cheers,
Scott