BigCan
asked on
How do I change the label text in the footer of a repeater control?
I have a label control in the footer of a repeater that lists a number of items. The repeater has items, quantities prices and extended prices. In the ItemDataBound event, I am putting the total price of the items in a label in the footer. I have a link button that resets all quantities to zero. I loop through the repeater items and update the quantities and extended prices, but I cant get to the total price label in the footer to set the text to zero.
I have tries Page.FindControl, Controls(0).FindControl, etc, but no luck.
I have tries Page.FindControl, Controls(0).FindControl, etc, but no luck.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
lol...where rptr is the repeater
ASKER
Yep&that was it.
I added:
lbLabel = FooterItem.FindControl("lb lTotalPric e")
If Not lbLabel Is Nothing Then
lbLabel.Text = "$0.00"
End If
I added:
lbLabel = FooterItem.FindControl("lb
If Not lbLabel Is Nothing Then
lbLabel.Text = "$0.00"
End If
ASKER
Thanks!
good job...