This should be simple enough, and I blame this primarily on my inexperience working with DataLists, Repeaters, etc.
I have a DataList control which I am using to display the items in a shopping cart. Everything is going along fine with my binding of the different controls using Eval("ColumnName") until I get to the price column.
My goal is to render it like so:
Total Item Cost
$20.00 ($5.00 each)
I am trying to accomplish this with two ASP Label controls inside the table cell:
<asp:Label ID="lblTotalItemCost" runat="server" Text='<%# Eval("TotalItemCost") %>'>
</asp:Label>
<br />
<asp:Label ID="lblPrice" runat="server" Text='(<%# Eval("Price")%> each)' >
</asp:Label>
Unfortunately it is rendering out the column as:
Total Item Cost
$20.00 (<%# Eval("Price")%> each)
I've tried a couple other methods, but they end up giving me "server tag not well formed" errors. I am pretty sure this should be simple but I'm stumped at the moment.