I formatted a string like "212,121". It works great with the code below on the local machine. But it does not work on the server. Please help me fix this error ...
This is my format:
<%#Eval("balance","{0:###,###,0}") %>
Works fine in local not on server ...
Make sure the regional settings are the same for both.
Have you tried something like this? (note: unverified code)
<%#String.Format(CultureInfo.InvariantCulture, "{0:###,###,0}", DataBinder.Eval(Container.DataItem, "balance").ToString)%>