Hello experts!
Please how do I display markup text (in html) with a asp.net 3.0 server control? I have a database full of markup text inputted using a richtext control. but I will like to display these text using other asp.net controls that would render the text correctly with the markup applied.
Expecting to hear from you guys.
Thanks
peace :)
jamello
158
Posting Whiz in Training
Recommended Answers
Jump to PostTwo ways:
string markup = "<a href='a.aspx'/>"; Label1.Text = Server.HtmlEncode( markup);
string markup = "<a href='a.aspx'/>"; Literal1.Mode = LiteralMode.Encode; Literal1.Text = markup;
All 2 Replies
kvprajapati
1,826
Posting Genius
Team Colleague
sknake
commented:
solved
+6
jamello
158
Posting Whiz in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.