all groups > asp.net datagrid control > march 2006 >
You're in the

asp.net datagrid control

group:

Displaying &L in a datagrid


Displaying &L in a datagrid md
3/22/2006 9:55:54 AM
asp.net datagrid control:
Hi all -

I have a VS.Net 2003 web app that is used at my employer to gain accesss to
a password database. When the password page is loaded a server is selected
in a listbox and the passwords for that server are displayed in a datagrid.

Recently someone entered a password of D&Lxxxxx. When this is displayed in
the datagrid it shows as D<xxxxx, instead of D&Lxxxxx. How do I prevent the
&L from being translated into a less than symbol?

Thanks for your time

Matt

Re: Displaying &L in a datagrid Elton Wang
3/22/2006 9:52:11 PM
Try

Server.HtmlEncode

HTH


[quoted text, click to view]

Re: Displaying &L in a datagrid md
3/23/2006 8:11:40 AM
Yes, it helped a great deal. Thanks!

Matt

[quoted text, click to view]

AddThis Social Bookmark Button