数据使用FCKEditor从数据库提交和检索 [英] data submit and retrive from database using FCKEditor

查看:52
本文介绍了数据使用FCKEditor从数据库提交和检索的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我在ASP.NET页面上成功完成了FCKEditor控件设置。我能够将控件绑定到数据库以查看内容,我也知道如何在数据库中输入值。



现在我的问题是:

当我将内容保存到数据库时,

假设数据库包含HTML标记,那么如何使用ASP.NET控件将该字段渲染到所需的页面?

总计,建议我如何在我的Desired页面上显示数据库中保存的Html标签



Plz help。

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.

推荐答案

您可以将数据从数据库绑定到段落

例如列''content''包含html标签,例如

You can Bind your data from database to a a paragraph
e.g. column ''content'' contains html tags like
abccde<h1>fgh</h1>



aspx -


aspx--

<p id="pContent"  runat="server"></p>
Or
<asp:literal id="ltrContent" runat="server">



.cs--


.cs--

pageload()
{
//p.Text = dr["content"].tostring();
//Or
ltrContent.Text = dr["content"].tostring();

}


这篇关于数据使用FCKEditor从数据库提交和检索的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆