M
Manan
hello All,
I have a simple question..I'm creating a tempString that
contains my values then i'm adding to a ListItemCollection
(). In my tempString i'm adding a spaces between each
values it works fine..when I add to a ListBox the HTML
doesn't render the spaces..Anyhelp is appreciated...
Tanks
Manan
code
-----
tempString = memLastName + Space(5) + memFirstName + Space
(5) + MemDob
tempItem = New ListItem()
tempItem.Text = tempString
tempItem.Value() = MemNbr
tempItemCollection.Add(tempItem)
Next
ListBox1.DataSource = tempItemCollection
ListBox1.DataTextField = "Text"
ListBox1.DataValueField = "Value"
ListBox1.DataBind()
I have a simple question..I'm creating a tempString that
contains my values then i'm adding to a ListItemCollection
(). In my tempString i'm adding a spaces between each
values it works fine..when I add to a ListBox the HTML
doesn't render the spaces..Anyhelp is appreciated...
Tanks
Manan
code
-----
tempString = memLastName + Space(5) + memFirstName + Space
(5) + MemDob
tempItem = New ListItem()
tempItem.Text = tempString
tempItem.Value() = MemNbr
tempItemCollection.Add(tempItem)
Next
ListBox1.DataSource = tempItemCollection
ListBox1.DataTextField = "Text"
ListBox1.DataValueField = "Value"
ListBox1.DataBind()