Possible to render HTML to a label.text control in ascx?

  • Thread starter Thread starter KatB
  • Start date Start date
K

KatB

Hoping I can explain what I need...

I have a web control within an aspx page. I need to store, edit and
retrieve tagged HTML in the DB (which I can do), then render that HTML
in a control (label or text, etc.) so that the "formatted" text shows
with bold, hyperlinks, etc.

Is it possible to do this? If not, any suggestions on alternatives?

Thanks, Kat
 
Hoping I can explain what I need...

I have a web control within an aspx page. I need to store, edit and
retrieve tagged HTML in the DB (which I can do), then render that HTML
in a control (label or text, etc.) so that the "formatted" text shows
with bold, hyperlinks, etc.

Is it possible to do this? If not, any suggestions on alternatives?

Thanks, Kat

Use a Literal control; its .Text is 'inserted' into the HTML stream
verbatim (it will render)....
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top