Click here to Skip to main content
15,894,907 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
how to calculate sum of repeater item data bound in .net

What I have tried:

how to calculate sum of repeater item data bound in .net
Posted
Updated 17-Oct-19 2:39am
Comments
Richard MacCutchan 13-Oct-19 3:09am    
Probably by adding together some values. But if you want a detailed answer then please post a detailed question. We have no idea what data you may be referring to.

1 solution

You can use the ItemDataBound event in the Repeater and have a class level variable that you increment. Repeater.ItemDataBound Event (System.Web.UI.WebControls) | Microsoft Docs[^]

Or, you can do it in the database query.
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900