How to sum a repeater field?


How to sum a repeater field.

I know that i can do it using database query. But, I want to show the total price on the same page.


Here’s how I have done it for an AMOUNT column in my application:

Create a copy of the repeated tbody and set the value using the source server connect’s query result.
You can create the extra body in code view, then set the value from design view.

I don’t know if there’s an easier way to achieve this without getting into code view. Mayber @Teodor can help.


This would work if i used the repeater to view data.
However, i am using the repeater to allow the user to add as much products as he wants.