- 博客(0)
- 资源 (6)
- 收藏
- 关注
ASPNET控件FCKeditor使用四步曲
fck使用四步曲1.设置webconfig,
<appSettings>
<add key="FCKeditor:BasePath" value="~/FCKeditor/"/>
<add key="FCKeditor:UserFilesPath" value="/Files"/>
</appSettings>
2.拷贝文件夹FCKeditor到根目录,根目录下新建文件夹Files;
3.将FredCK.FCKeditorV2.dll放到bin文件夹,在工具箱添加自定义控件,拖进要使用FCK的页(default.aspx);
4.提交的内容是(default.aspx.cs):HttpUtility.HtmlEncode(FCKeditor1.Value);
在DATALIST的模板里显示内容(show.aspx):
<asp:DataList ID="DataList1" runat="server" DataSourceID="SqlDataSource1">
<ItemTemplate>
<%# HttpUtility.HtmlDecode(Eval("news").ToString()) %>
</ItemTemplate>
</asp:DataList>
2008-09-10
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人