I have asp.net FCKEditor v2 installed, target framework 3.5.
After postback, I get the value,
FCKeditor1.Value is holding the Original value when the page first loaded, regardless of how much I change the contents.
I am explicitly expiring the page cache to stop the page from caching, but even still, postback data shouldn't be cached. The postback data isn't getting the new content, but the original html from page load.
Any suggestions appreciated!
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %> ... <FCKeditorV2:FCKeditor ID="FCKeditor1" Height="130" toolbarSet="ImageOnly" runat="server"></FCKeditorV2:FCKeditor>
After postback, I get the value,
strValue = FCKeditor1.Value
FCKeditor1.Value is holding the Original value when the page first loaded, regardless of how much I change the contents.
I am explicitly expiring the page cache to stop the page from caching, but even still, postback data shouldn't be cached. The postback data isn't getting the new content, but the original html from page load.
Any suggestions appreciated!
Re: .net value issue
<FCKeditorV2:FCKeditor ID="LearningObjectiveFCKeditor" Value='<%# Bind("LearningObjective") %>' Width="890px" runat="server" Height="300" BasePath="~/fckeditor/">
</FCKeditorV2:FCKeditor><br /><br />
Looks like the difference is that I'm binding my control value to an attribute that is part of my ObjectDataSource. I believe that if you're not binding to anything, then you have to save the value in ViewState in order to get the value back after a postback.
Jan
Re: .net value issue
Re: .net value issue
6. If a base class has a number of overloaded constructors, and an inheriting class has a number of overloaded constructors; can you enforce a call from an inherited constructor to a specific base constructor?
document scanning
Re: .net value issue
This is the first time I've used the .Net assembly as I usually use the JS version and post via AJAX or AJAH.
I just need to get the updated editor content on PostBack in a event button handler.
Let me know if you require anything else and I appreciate your help with this!
Thanks,
Attachments:
Re: .net value issue
Better late than never.
When I look through your admin.aspx and admin.aspx.vb files, I see that you are indeed setting the FCKeditor .Value attribute in the form1_Load() event. Note however that when a PostBack occurs, such as when your cmdSave_Click() method gets activated, Page_Load and Form_Load also (re-)occur. A simple 'If Not IsPostback' statement in the Page_Load or Form_Load event method would suffice to fix this issue.