Formatting number returns blank, not 0

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
 
M

Mark Rae

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

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top