DATABASE TEXT WITH HTML FORMATTING, HOW TO PULL IT INTO MY ASP.NET PAGE

Total Post:135

Points:947
C# 
C#
 948  View(s)
Ratings:
Rate this:

I have content that I want to load dynamically, the problem is it has some html formatting in it. What control should i pull the text into, is there a way to pull the text into a div or a label, along with the formatting?

  1. Post:378

    Points:2694
    Re: database text with html formatting, how to pull it into my asp.net page

    Hi Chintoo, 


    You can use an asp:Literal:

    Code behind:

    myLiteral.Text = HtmlDecode(GetTextFromDB())

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!