Formatting number returns blank, not 0

Discussion in 'ASP .Net' started by staeri@gmail.com, Jul 28, 2006.

  1. Guest

    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
     
    , Jul 28, 2006
    #1
    1. Advertising

  2. Mark Rae Guest

    <> wrote in message
    news:...
    > 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}
     
    Mark Rae, Jul 28, 2006
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. David
    Replies:
    10
    Views:
    896
    David
    Jul 27, 2005
  2. vizlab
    Replies:
    3
    Views:
    4,214
    Michael Bar-Sinai
    Oct 17, 2007
  3. ++imanshu
    Replies:
    7
    Views:
    477
    ++imanshu
    Aug 23, 2008
  4. Doc Wally
    Replies:
    1
    Views:
    125
    Ray at
    Oct 10, 2003
  5. Trans
    Replies:
    2
    Views:
    230
    Trans
    Nov 6, 2005
Loading...

Share This Page