Hello. I have a few questions regarding the FCKEditor. 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, however I do not understand how to render the value from the database back to the page or how to save any changes from the control to the database.
First question: Can I use the Save button on the FCKEditor control to save the contents to the database? If so, how is that done?
Second question: When I save the contents to the database, I assume all the HTML tags will be included in the database field?
Third question: Assuming the database contains the HTML tags, how do I then render that field to a Label or other ASP.NET field? I will have a Formview with EditItemTemplate to edit the contents, then a way to save the changes. After the data is saved, the ItemTemplate will be displayed with the ASP.NET control (my question is what control do I use to render the HTML???)
I realize these are fundamental questions regarding this control, but I just couldn't find answers to these question anywhere. Most forums just talk about getting the control to show on the page. Thank you for your assistance!!
Here is part of my ASPX page:
<asp:FormView ID="CMS_FV" runat="server" DataSourceID="SqlDataSource1" OnItemCommand="FormView_ItemCommand" OnItemUpdating="updateDatabase">
<ItemTemplate>
//Some way to display the HTML data here from the database???????????????
</ItemTemplate>
<EditItemTemplate>
<FCKeditorV2:FCKeditor ID="FCKeditor1" runat="server" BasePath="fckeditor/" Width="920px" Value='<%# Bind("Detail") %>'></FCKeditorV2:FCKeditor>
</EditItemTemplate>
</asp:FormView>
Mon, 09/20/2010 - 19:54
#1