String format does not work locally on the server

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 ...

+3
source share
2 answers

Make sure the regional settings are the same for both.

+6
source

Have you tried something like this? (note: unverified code)

  <%#String.Format(CultureInfo.InvariantCulture, "{0:###,###,0}", DataBinder.Eval(Container.DataItem, "balance").ToString)%>
+1
source

All Articles