In article <eD**************@TK2MSFTNGP02.phx.gbl>, "Bob Barrows [MVP]"
<re******@NOyahoo.SPAMcom> writes
I am populating a drop down list at run time, and the text going in
includes a pound sign. I have been trying to add the item like this...
drpFerret.Items.Add(new ListItem("Ferrets £9.99"));
but the framework HTML encodes this, resulting in the "£" being
sent out as "&pound;" which does not display how I want.
How about
drpFerret.Items.Add(new ListItem("Ferrets " & Chr(156) & "9.99"));
Huh? That shows up as a little square box. Were you thinking of
chr(163), which is the ASCII code for the pound sign? If so, then this
doesn't answer my question as I want the HTML entity code for a pound
sign, so that people who don't necessarily have a UK language set up
will also see a pound sign. Putting the pound sign in as a character is
fine for UK people, but not for the rest of the world.
What I want is to end up with "Ferret £9.99"
Thanks anyway, any other ideas?
--
Alan Silver
(anything added below this line is nothing to do with me)