I know this has been written about but I still can't make it work - please help.
I have a datalist with fees, the last row being the total. 2 labels per row. All I want is the 2nd label of the last line.
In the itemdatabound event i've coded
it doesn't like the label. I haven't attempted to grab only the last row yet as I'm trying 1 piece at a time.
I've also tried
from a button click event
I have a datalist with fees, the last row being the total. 2 labels per row. All I want is the 2nd label of the last line.
In the itemdatabound event i've coded
Code:
Dim xx As String = CType(e.Item.FindControl("Label25"), Label).Text
it doesn't like the label. I haven't attempted to grab only the last row yet as I'm trying 1 piece at a time.
I've also tried
Code:
fees.Text = CType(dlFees.Items(0).FindControl("Label25"), Label).Text