all groups > asp.net webcontrols > july 2003 >
You're in the

asp.net webcontrols

group:

Adding spaces to a ListItem



Adding spaces to a ListItem Larry Searing
7/29/2003 11:26:40 AM
asp.net webcontrols: I would like to add spaces to a ListBox' items. When the
list arrives at the client, all spaces are removed. If I
put   in the text, it displays as  . However,
in a plain HTML <select> control, &nbsp; can be used in
each <option> to provide extra spaces.

I tried the HtmlSelect control but it works the same and
uses ListItems just like the ListBox does.

Is there a way to do this with a ListBox?

Adding spaces to a ListItem Larry Searing
7/29/2003 12:14:12 PM
The initial post used the HTML tags. This should remedy
that, I hope.

I would like to add spaces to a ListBox' items. When the
list arrives at the client, all spaces are removed. If I
put &amp;nbsp; in the text, it displays as &amp;nbsp;.

However,
in a plain HTML select control, &amp;nbsp; can be used
between
each option tag to provide extra spaces.

I tried the HtmlSelect control but it works the same and
uses ListItems just like the ListBox does.

Is there a way to do this with a ListBox?

AddThis Social Bookmark Button