Thanks Scott, but unfortunately this isn't working.
This in code:
Server.HTMLEncode("Item 1 Something")
yields this in the web browser html source
"Item 1 Something"
which appears as
"Item 1 Something"
- the multiple spaces just "compress". I don't seem to be able to get the
necessary sequences going through.
There is an error in my post below I say strdup(n, " ") when it should
be MyDup(n, " ")
- MyDup duplicates the string sequence, StrDup seems only to duplicate the
first character.
So, I am no closer...
- Tim
"Scott M." <s-> wrote in message
news:...
> Try this:
>
> li.Text = Server.HTMLEncode("Item 1 Something")
>
>
> "Tim" <Tim@NoSpam> wrote in message
> news:...
>> Hi,
>>
>> I am trying to load up a drop list with semi aligned columns like so:
>>
>> [Item 1 Something]
>> Item 2 Something Else
>>
>> etc.
>>
>> To do so, I have tried to fill the Text valus of ListItems like so:
>>
>> dim li as new ListItem
>>
>> li.Text = "Item 1" & StrDup(14, " ") & "Something"
>>
>> along with variations using encoding....
>>
>> However, in the web browser, the & is being replaced with &
>>
>> Any ideas please?
>>
>> - Tim
>>
>>
>>
>
>
|