S
ssmith
I am trying to format a negative value with parentheses during the
databinding process in the code behind. Here is an example of what I have
tried:
<asp:Label ID="lblAmount" runat="server" Text='<%# Eval("TotalAmount",
"{0:N0; (0:N0)}") %>'></asp:Label>
I was hoping the second part would place the parentheses around a negative
number. Any suggestions? Thanks!
databinding process in the code behind. Here is an example of what I have
tried:
<asp:Label ID="lblAmount" runat="server" Text='<%# Eval("TotalAmount",
"{0:N0; (0:N0)}") %>'></asp:Label>
I was hoping the second part would place the parentheses around a negative
number. Any suggestions? Thanks!