data containing html tags appears in gridview

Discussion in 'ASP .Net Web Controls' started by jamesd, Jun 2, 2006.

  1. jamesd

    jamesd Guest

    I have a sql sprocedure that has html tags wrapped around the data it
    returns.

    In the past, using the old .net datagrid the browser would render the
    html correctly.

    Now, using the datagrid, the datagrid replaces all the html tags with
    &quot, &lt &gt characters. Therefore the html cannot be rendered
    correctly.

    I need a solution so the data given to the gridview will display
    exactly as it is given, and not be "rewritten" by the datagrid. I
    can't use templatecolumns or anything like that because the columns
    returned by the database change dynamically!

    Thanks,
    Tom
    jamesd, Jun 2, 2006
    #1
    1. Advertising

  2. Use the property below for you controls.
    ..HtmlEncode = False




    "jamesd" <> wrote in message
    news:...
    >I have a sql sprocedure that has html tags wrapped around the data it
    > returns.
    >
    > In the past, using the old .net datagrid the browser would render the
    > html correctly.
    >
    > Now, using the datagrid, the datagrid replaces all the html tags with
    > &quot, &lt &gt characters. Therefore the html cannot be rendered
    > correctly.
    >
    > I need a solution so the data given to the gridview will display
    > exactly as it is given, and not be "rewritten" by the datagrid. I
    > can't use templatecolumns or anything like that because the columns
    > returned by the database change dynamically!
    >
    > Thanks,
    > Tom
    >
    Ben Schumacher, Jun 2, 2006
    #2
    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. Dean H. Saxe
    Replies:
    0
    Views:
    1,015
    Dean H. Saxe
    Jan 3, 2004
  2. Rob Nicholson
    Replies:
    3
    Views:
    679
    Rob Nicholson
    May 28, 2005
  3. Lemming
    Replies:
    3
    Views:
    430
    Lemming
    Oct 20, 2004
  4. Donald Firesmith

    html tags within meta tags allowed?

    Donald Firesmith, Jan 5, 2005, in forum: XML
    Replies:
    5
    Views:
    873
    Andy Dingley
    Jan 8, 2005
  5. Replies:
    3
    Views:
    137
    William James
    Jul 25, 2006
Loading...

Share This Page