Thanks for the reply. Here's the solution.
In the ASDPX page (as you suggested) -
<P><asp:listbox id="L" runat="server" >
<asp:ListItem> Item 1</asp:ListItem>
</asp:listbox></P>
In VB code (the one I really wanted) -
L.Items.Add(Server.HtmlDecode(" Item 2"))
In Vb code you need to use the function HtmlDecode.
Mike
[quoted text, click to view] >-----Original Message-----
>"Mike parris" <anonymous@discussions.microsoft.com> wrote
in message
>news:065801c3b66c$373a0ba0$a301280a@phx.gbl...
>> I want to represent the list of items as a heirarchy by
>> indenting each item by a set amount depending on its
level.
>> For example level 1 = no spaces, level 1 = 2 spaces etc.
>>
>> If I try too use leading spaces or tabs to do this the
>> control removes them. Is there a way to do this?
>
>Have you tried adding the spaces in HTML-encode
form: " " ?
>
>--
>
>Jos
>
>
>.