Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NETSQL
Hello,
I have the FCKEditor control setup on my ASP.NET page successfully. I am able to bind the control to a database to view the contents, I also know that how to Enter the value in the database.
 
Now My Question is:
When I save the contents to the database,
Assuming the database contains the HTML tags, how do I then render that field to a desired page using ASP.NET controls?
in total,suggest me how to display the saved Html tags in the database, on my Desired page
 
Plz help.
Posted 18-Jan-13 20:27pm
Edited 23-Jan-13 23:26pm
v4

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

You can Bind your data from database to a a paragraph
e.g. column 'content' contains html tags like
abccde<h1>fgh</h1>
aspx--
<p id="pContent"  runat="server"></p>
Or
<asp:literal id="ltrContent" runat="server">
 
.cs--
pageload()
{
//p.Text = dr["content"].tostring();
//Or
ltrContent.Text = dr["content"].tostring();
 
}
  Permalink  
v2
Comments
Arun1990 at 24-Jan-13 6:09am
   
it is not work, first thing is pContent tag not support .text property at .cs page, second is you can not use p tag at .cs page without apply runat tag, so what can i do
Azziet at 24-Jan-13 6:20am
   
use <asp:literal id="ltrContent" runat="server">
Azziet at 24-Jan-13 6:20am
   
use <asp:literal id="ltrContent" runat="server">
Arun1990 at 24-Jan-13 6:25am
   
now it work fine, thanks for, answer
Azziet at 24-Jan-13 6:31am
   
your welcome Arun1990

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Guruprasad.K.Basavaraju 450
1 Sergey Alexandrovich Kryukov 325
2 Shai Vashdi 318
3 OriginalGriff 265
4 Peter Leow 171
0 Sergey Alexandrovich Kryukov 9,109
1 OriginalGriff 5,290
2 Peter Leow 4,010
3 Maciej Los 3,535
4 Abhinav S 3,263


Advertise | Privacy | Mobile
Web01 | 2.8.140415.2 | Last Updated 24 Jan 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid