[thelist] .NET [C#], DropDownList, HTMLEncode

Matt Warden mwarden at gmail.com
Thu Sep 7 07:41:24 CDT 2006

On 9/7/06, Chris at globet.com <Chris at globet.com> wrote:
> Guys
> Thanks for the responses. I haven't had time to address this particular
> problem any further, but I'll post if I find a solution. I understand
> what you're saying, but I still don't see why ampersands would (or
> should) be HTML encoded. Unfortunately I cannot change the string that
> I'm using, as it comes from a database. I get the same issue whether or
> not I use the string from the database or hard-code it as a string
> literal.


The thought is that it is *not* being treated as if it were
HTML-encoded. It is being treated as a literal string. So, if you type
"&amp;", you will get "&amp;" just as if you had typed "asdf" and got

Matt Warden
Cleveland, OH, USA

This email proudly and graciously contributes to entropy.

More information about the thelist mailing list