Hi!
I have used FCKeditor and Asp for a year now, and now I am trying to move over to ASP.Net.
But I can not find a way to get the data from my AccessDataSource and into the editable area.
I get the data into a formview, but can not find a solution on how to get it into the editable area.
Anyone who knows a way of doing this?
This is my code:
<%@ Page Language="VB" %> <%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> ; <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>Untitled Page</title> </head> <body> <form id="form1" runat="server"> <div> <asp:AccessDataSource ID="AccessDataSource_test" runat="server" DataFile="~/App_Data/bc.mdb" SelectCommand="SELECT [Artikkel] FROM [provekjoring]"></asp:AccessDataSource> <FCKeditorV2:FCKeditor ID="FCKeditor1" runat="server" BasePath="FCKeditor/"> </FCKeditorV2:FCKeditor> <asp:FormView ID="FormView1" runat="server" DataSourceID="AccessDataSource_test"> <ItemTemplate> Artikkel: <asp:Label ID="ArtikkelLabel" runat="server" Text='<%# Bind("Artikkel") %>'></asp:Label><br /> </ItemTemplate> </asp:FormView> </div> </form> </body> </html>
Re: asp.net and FCKeditor
<FCKeditorV2:FCKeditor ID="FCKeditor1" runat="server" BasePath="FCKeditor/" Value='<%# Eval("YourProperty") %>'>
</FCKeditorV2:FCKeditor>
You don't need to use Bind because you are only using one way databinding. Hope this helps.
Re: asp.net and FCKeditor
Value='<%# Eval("YourProperty") %>'
Is it by any chance related to the formview?
Re: asp.net and FCKeditor
solved it
Thanks for your advice!!