Click here to Skip to main content
12,819,421 members (30,651 online)
Rate this:
Please Sign up or sign in to vote.
See more: C# ASP.NET
Here are my repeater It has 8 column .. I want to calculate sum of column and put that value in footer template label.. Even i m abel to calculate sum but how to put this calculated value in to the footer label
<asp:Panel ID="pnlData" runat="server" CssClass="overHidden">
                <table class="table table100">
                    <asp:Repeater ID="rptTotalSell" runat="server">
                            <table id="tblDataTables" class="table table100">
                                    <tr class="right">
                                            Sr. No.
Posted 27-Nov-12 19:21pm
Updated 27-Nov-12 19:34pm
biswarup88 28-Nov-12 0:46am
This BillAmt value is available in server side; you can easily calculate that and display that as Total amount.

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

.Controls.Count - 1].Controls[0].FindControl("lblTotal"))).Text = Total.ToString();

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

    Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170308.1 | Last Updated 28 Nov 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100