emit raw html

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have HTML markup in a database table, e.g.
<h1>text text</h1>

When I read the data into a DataGrid, GridView or some such,
I want the HTML to be emitted as is. This means that if I view
the source of the page, I will see, e.g.
....<td><h1>text text</h1></td>...
I don't what the HTML to be encoded like
....<td><h1>text text...

Can this be done?

Thank you.
 
If the HTML from the database is getting Rendered when displayed inside a
Datagrid (etc) cell, you can surround the HTML Snippet with <XMP> ... </XMP>

tags. That's the "Example" tag which is designed to tell the browser to pass
the markup through without attempting to render it.
Peter
 
Hi,
Not exactly on topic, but I am trying to get the answer ASAP. In your
example on http://www.eggheadcafe.com/articles/20021205.asp about
displaying windows forms in explorer I tried to repeat your steps
(along with reading and following about 10 other different sites on how
to display controls in IE), but i keep getting standard IE error page
where control should be (example on that page is the same way) with a
small red cross in an upper-left corner. I reset all permissions and
securities all over the place to full trust, tried it on two machines
(XP and Server 2003), used various samples and wrote my own code,
created several virtual folders - all to no avail. I am completly new
to hosting windows controls in IE (but by now I read pretty much all
there is publicly available online on the topic), so the solution could
be rather simple, but it manages to ellude me - this is a time
sensitive issue for me so any help would be greatly appreciated.

Steve
 
Back
Top