You should be able to do it via:
dim spaces as string = DecodedSpaces(2)
lBoxLocation.Items.Add(spaces + dirInfo[i].Name,dirInfo(i).FullName)
public shared function DecodedSpaces(numberOfSpaces as integer) as string
dim spaces as string = ""
for i as integer = 0 to numberofSpaces - 1
spaces &= " "
next
return HttpUtility.HtmlDecode(spaces)
end function
Karl
--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is
annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
"Jeff" <je*********@eNetPortals.com> wrote in message
news:sN***************@newsread3.news.atl.earthlin k.net...
Hi -
I'm using VB.NET to build an ASP.NET page with a dropdownlist control.
I'm trying to insert spaces into dropdownlist listitem text values. I read
that it's possible to do so with "\u00A0" to represent a non-breaking space
character. How do you implement such a character in VB.NET?? Or is ther
a different/better approach?
Thanks for your help.
- Jeff