Here is a solution to that problem that was posted some time ago by someone
else.
Dim Padding As String
Dim writer As New System.IO.StringWriter()
Dim DecodedString As String
Padding = " "
Server.HtmlDecode(Padding, writer)
Padding = writer.ToString()
myDropDownList2.Items.Add(Padding & " MVP's")
Padding = " &nb sp;"
Server.HtmlDecode(Padding, writer)
Padding = writer.ToString()
myDropDownList2.Items.Add(Padding & " MVP's")
myDropDownList2.Items.Add("MVP's" & Padding & "Do Their best")
"Bill Green" <gr********@hotmail.com> wrote in message
news:uS**************@TK2MSFTNGP10.phx.gbl...
I am trying to add an indent to a Dropdown control. I prefix the text for
the ListItem with a couple but it doesn't render the tags to spaces
, instead the dropdown list shows:
MainItem
SubItem
SubItem
Thanks,
--
Bill Green