Displaying &L in a datagrid

Discussion in 'ASP .Net Datagrid Control' started by md, Mar 22, 2006.

  1. md

    md Guest

    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
    md, Mar 22, 2006
    #1
    1. Advertising

  2. md

    Elton Wang Guest

    Try

    Server.HtmlEncode

    HTH


    "md" <> wrote in message
    news:...
    > 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
    >
    >
    Elton Wang, Mar 23, 2006
    #2
    1. Advertising

  3. md

    md Guest

    Yes, it helped a great deal. Thanks!

    Matt

    "Elton Wang" <> wrote in message
    news:...
    > Try
    >
    > Server.HtmlEncode
    >
    > HTH
    >
    >
    > "md" <> wrote in message
    > news:...
    >> 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
    >>
    >>

    >
    >
    md, Mar 23, 2006
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Duncan
    Replies:
    3
    Views:
    534
  2. vinayak

    Displaying data in datagrid problem

    vinayak, Jul 26, 2003, in forum: ASP .Net
    Replies:
    3
    Views:
    554
    Carl Prothman [MVP]
    Jul 28, 2003
  3. Nedu N
    Replies:
    1
    Views:
    424
    Henrik Grotle
    Sep 18, 2003
  4. Nedu N
    Replies:
    2
    Views:
    416
    Mark Schubert
    Nov 19, 2003
  5. Ray
    Replies:
    2
    Views:
    1,131
Loading...

Share This Page