Skip to content

Label on webpage doesn't display all blank spaces between words

vspan

Asked May 13, 2012, 9:04 AM EDT1 answer
Share
LinkedInX
Hi,

I have a label on an AJAX update panel which displays only one blank space between words, even though
the number of spaces between words is more than 1.
e.g.

Label1.Text = "Percentage of loan   paid  out: ";



In the above example the number of blank spaces between the words "loan" and "paid" is 3.
For some reason the label on the webpage displays only 1 blank space beween the words "loan" and "paid".
Can you help?  Thanks in advance.

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    I just found a solution.
    Use no-breakable spaces:
    Label1.Text = "Percentage of loan   paid    out:";
    0