Display of spaces in listbox items

  • Thread starter Thread starter Jeff
  • Start date Start date
J

Jeff

Could someone tell me if it is possible to for a listbox displayed on an
..aspx web page to display more than a single space between words.
all of the various test code below simply results in the display of a single
space between "Hello" and "test"

Thanks

Jeff


LI= New ListItem
Dim sb2 As New StringBuilder
sb2.Append("Hello")
sb2.Append(" ")
sb2.Append("&nbsp")
sb2.Append(Chr(32))
sb2.Append(Chr(32))
sb2.Append(Chr(32))
sb2.Append("test")

LI.Text = sb2.ToString
LI.Value = 88
emaillist.Items.Add(Question)
 
Jeff said:
Could someone tell me if it is possible to for a listbox displayed on an
.aspx web page to display more than a single space between words.
all of the various test code below simply results in the display of a
single space between "Hello" and "test"

Never mind - figured it out. chr(160) works.
 

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