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.
 
Back
Top