Formatting number returns blank, not 0

  • Thread starter Thread starter staeri
  • Start date Start date
S

staeri

When I print the value returned from a web service in a label I format
it with '<%# Eval("Number", "{0:#,###}") %>'. If the value returned is
0 it is shown as blank in the label.

How can I change that? It should be shown as 0. I can't change anything
in the web service.

Regards,

S
 
When I print the value returned from a web service in a label I format
it with '<%# Eval("Number", "{0:#,###}") %>'. If the value returned is
0 it is shown as blank in the label.

How can I change that? It should be shown as 0. I can't change anything
in the web service.

{0:#,##0}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top