Hi there
I currently have a listbox that displays provinces,regions and suburbs.I want to pad the items logically with spaces,but the spaces are being igonred...
eg
Province1
Regions1
region2
Province2
Region3
Suburb1
Suburb2
my code is as follows--I tried to do the following that was suggested somewhere...but still it ignores the spaces....
System.IO.StringWriter writer= new System.IO.StringWriter();
ListItem li2 = new ListItem();
li2.Value = "1,"+regionArray[p, 2];
Server.HtmlDecode(" ", writer);
String DecodedString = writer.ToString();
practiceAreas.Items.Add(DecodedString);---practiceareas is my listbox
Does anybody have any ideas?
Thanks