Click here to Skip to main content
12,303,569 members (74,130 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">
                        <HeaderTemplate>
                            <table id="tblDataTables" class="table table100">
                                <thead>
                                    <tr class="right">
                                        <th>
                                            Sr. No.
                                        </th>
Posted 27-Nov-12 18:21pm
Edited 27-Nov-12 18:34pm
v2
Comments
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
 
good
Please Sign up or sign in to vote.

Solution 1

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

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.160530.1 | Last Updated 28 Nov 2012
Copyright © CodeProject, 1999-2016
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