Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Possible to render HTML to a label.text control in ascx?

Reply
Thread Tools

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

 
 
KatB
Guest
Posts: n/a
 
      05-05-2005
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

*** Sent via Developersdex http://www.developersdex.com ***
 
Reply With Quote
 
 
 
 
Craig Deelsnyder
Guest
Posts: n/a
 
      05-05-2005
On Wed, 04 May 2005 20:31:12 -0500, KatB <> wrote:

> 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
>
> *** Sent via Developersdex http://www.developersdex.com ***


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

--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET
 
Reply With Quote
 
 
 
 
KatB
Guest
Posts: n/a
 
      05-05-2005
THANK YOU!!!

Thanks, Kat

*** Sent via Developersdex http://www.developersdex.com ***
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Accessing rails render method outside of view / Decorating render Glenn Gillen Ruby 0 11-17-2006 02:30 PM
Is it possible to not render a end tag of a .NET server control ? =?Utf-8?B?RXJpYw==?= ASP .Net 3 10-07-2004 03:31 PM
Page.Render do not render complete page Lau Lei Cheong ASP .Net 1 05-15-2004 04:10 AM
Using Table control in a custom composite control. Control does not render properly in design time. jb_in_marietta@yahoo.com ASP .Net Building Controls 1 07-02-2003 08:05 AM
Using Table control in a custom composite control. Control does not render properly in design time. jb_in_marietta@yahoo.com ASP .Net 0 07-01-2003 09:26 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57