![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have a typical Repeater that contains a Template (html table). The repeater / template lists many records and in the footer, I'd like to simply SUM up the $$ amounts from all the records in the repeater. Easy enough. So I tried to place a Label control in the footer and fill the Text of the label from code. I get the label is not declared error. So how can I go about doing this? I tried writing a helper function in the code-behind file to get the value to place in the label but can't seem to get it work. Any ideas? Thanks in advance! (ASP.NET 2/VB) FooterTemplate tr valign="top" td colspan="2" align="right" class="ColumnHeader">Total</td td class="ColumnHeader" width="25%"><asp:Label ID="lblTotalCapitalBudgets" runat="server" Font-Bold="true" Text="<%#GetTotal(Container.DataItem("ParentRecord ID")%>" /></td /tr /table /FooterTemplate Protected Function GetTotal(intRecordID As Integer) As String ..typical function to run a SQL Statement to get a SUM.. End Function Compiler Error Message: BC30451: Name 'lblTotalCapitalBudgets' is not declared. |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |