I want mine to Labeluse the format {0:c2}; however, it does not work when I do it as follows:
Client Code:
<asp:Label ID="Label4" runat="server" Text="Label" StringFormat="{}{0:c2}"></asp:Label>
Server code (when loading the page):
Dim dvSql7 As DataView = DirectCast(SqlDataSource7.Select(DataSourceSelectArguments.Empty), DataView)
For Each drvSql7 As DataRowView In dvSql7
Label4.Text = drvSql7("goal").ToString()
Next
What could be the problem? Thanks in advance for any help.
source
share