<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>ASP.NET AJAX UI</title><link>http://forums.asp.net/1008.aspx</link><description>Here you can discuss UI-related issues with AJAX such as controls and client-side functionality including Silverlight controls for ASP.NET</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: FYI: How to make FCKeditor work in an UpdatePanel</title><link>http://forums.asp.net/thread/3397964.aspx</link><pubDate>Thu, 10 Sep 2009 15:04:11 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3397964</guid><dc:creator>skrowl</dc:creator><author>skrowl</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3397964.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1008&amp;PostID=3397964</wfw:commentRss><description>&lt;p&gt;I made a minor tweak to &lt;strong&gt;ajitsatpathy&amp;#39;s&lt;/strong&gt; code (converted to VB.NET, used ScriptManager instead of Page.ClientScript)&amp;nbsp;and it worked for me&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;pre class="vb.net" name="code"&gt;ScriptManager.RegisterOnSubmitStatement(Me, Me.GetType(), &amp;quot;AjaxHack&amp;quot;, &amp;quot;for ( var i = 0; i &amp;lt; parent.frames.length; ++i ) if ( parent.frames[i].FCK ) parent.frames[i].FCK.UpdateLinkedField();&amp;quot;)&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: FYI: How to make FCKeditor work in an UpdatePanel</title><link>http://forums.asp.net/thread/3230287.aspx</link><pubDate>Sat, 13 Jun 2009 08:44:35 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3230287</guid><dc:creator>ajitsatpathy</dc:creator><author>ajitsatpathy</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3230287.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1008&amp;PostID=3230287</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;A very very simple solution of this problem is - just write the below single line code to your Page_Load(). It&amp;#39;ll work for multiple FCK Editor present inside update panel also.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;this.Page.ClientScript.RegisterOnSubmitStatement(this.GetType(), &amp;quot;AjaxHack&amp;quot;, &amp;quot;for ( var i = 0; i &amp;lt; parent.frames.length; ++i ) if ( parent.frames[i].FCK ) parent.frames[i].FCK.UpdateLinkedField();&amp;quot;);&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Happy Coding &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: FYI: How to make FCKeditor work in an UpdatePanel</title><link>http://forums.asp.net/thread/2981797.aspx</link><pubDate>Wed, 04 Mar 2009 11:43:47 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2981797</guid><dc:creator>AzharSaiyed</dc:creator><author>AzharSaiyed</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2981797.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1008&amp;PostID=2981797</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;pre&gt;private void Page_Load(object sender, EventArgs args)&lt;br /&gt;{&lt;br /&gt;    Page.ClientScript.RegisterOnSubmitStatement(editor.GetType(), &amp;quot;editor&amp;quot;,&lt;/pre&gt;&lt;pre&gt;    &amp;quot;FCKUpdate(&amp;#39;&amp;quot; + editor.ClientID + &amp;quot;&amp;#39;);&amp;quot;);&lt;br /&gt;}&lt;/pre&gt;&lt;pre&gt;function FCKUpdate(id)&lt;br /&gt;{&lt;br /&gt;      if(typeof(FCKeditorAPI) == &amp;quot;object&amp;quot;)&lt;br /&gt;        {&lt;br /&gt;            FCKeditorAPI.GetInstance(id).UpdateLinkedField();&lt;br /&gt;        }&lt;br /&gt;   &lt;br /&gt;} &lt;br /&gt;&lt;/pre&gt;</description></item><item><title>Re: FYI: How to make FCKeditor work in an UpdatePanel</title><link>http://forums.asp.net/thread/2481286.aspx</link><pubDate>Thu, 10 Jul 2008 19:19:03 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2481286</guid><dc:creator>acoldone</dc:creator><author>acoldone</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2481286.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1008&amp;PostID=2481286</wfw:commentRss><description>&lt;p&gt;I find I&amp;#39;m getting the same error &amp;quot;FCK is not defined&amp;quot; using the pached files and the ajax compatable version. The difference might be I&amp;#39;m using master pages? Also when I include 2 of these controls inside an update panel I get a post back. If I remove them and submit no post back? Thanks for your effort but for me it stills seems to be borked. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: FYI: How to make FCKeditor work in an UpdatePanel</title><link>http://forums.asp.net/thread/2428383.aspx</link><pubDate>Tue, 17 Jun 2008 13:19:31 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2428383</guid><dc:creator>randomaccess</dc:creator><author>randomaccess</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2428383.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1008&amp;PostID=2428383</wfw:commentRss><description>&lt;p&gt;There are already dedicated tickets on fckeditor&amp;#39;s bugtracker for the two issues described here. See the following links:&lt;/p&gt;&lt;p&gt;&lt;a href="http://dev.fckeditor.net/ticket/234"&gt;http://dev.fckeditor.net/ticket/234&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://dev.fckeditor.net/ticket/1255"&gt;http://dev.fckeditor.net/ticket/1255&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I&amp;#39;ve provided there an AJAX-compatible version of the original FCKeditor.NET control. You can download this as an attachment from the above bug tickets.&lt;/p&gt;&lt;p&gt;It inherits from the existing control, and implements IScriptControl to embed client-side functionality. So &lt;b&gt;with this fix you need to make no modifications to your own code&lt;/b&gt;. You can use the new control on the page just like the non-AJAX version, only this works inside an UpdatePanel. I consider this a neater implementation than anything else described here, since it properly leverages the AJAX framework to transparently implement the client-side behaviour.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Please see the comments on the bug ticket for further information about the cause of the problem, and implementation details.&lt;/p&gt;&lt;p&gt;There are still some minor problems encountered &lt;b&gt;beyond &lt;/b&gt;the &amp;quot;FCK is not defined&amp;quot; Firefox error. These further errors are linked to the FCK core, which I&amp;#39;m still working on a fix for. These errors do not prevent the editor working, but they &lt;b&gt;could&lt;/b&gt; result eventually in memory leakage or other unwanted effects.&lt;/p&gt;&lt;p&gt;If possible, please bring any further discussion of this problem directly to the FCK bug tracker (after first reading all the comments there of course ;).&lt;/p&gt;&lt;p&gt;Edit: I&amp;#39;ve just had a new look at the ticket (#1255) and realised I never posted my patch. I had to modify FCK&amp;#39;s core to fix the Firefox error. If anyone needs this patch urgently I can provide it, but I probably won&amp;#39;t submit it to the bug ticket until I&amp;#39;ve eliminated the further errors I described above.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: FYI: How to make FCKeditor work in an UpdatePanel</title><link>http://forums.asp.net/thread/2409261.aspx</link><pubDate>Sun, 08 Jun 2008 14:37:09 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2409261</guid><dc:creator>PaulSinnema</dc:creator><author>PaulSinnema</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2409261.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1008&amp;PostID=2409261</wfw:commentRss><description>&lt;p&gt;Hi All,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I&amp;#39;ve created a new class that derives from the FCKeditor Class. A description can be found on the FCKeditor Forum &lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.fckeditor.net/forums/viewtopic.php?f=6&amp;amp;t=9826&amp;amp;p=26287#p26287"&gt;http://www.fckeditor.net/forums/viewtopic.php?f=6&amp;amp;t=9826&amp;amp;p=26287#p26287&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Cheers,&lt;br /&gt;Paul&lt;/p&gt;</description></item><item><title>Re: FYI: How to make FCKeditor work in an UpdatePanel</title><link>http://forums.asp.net/thread/2409081.aspx</link><pubDate>Sun, 08 Jun 2008 10:06:46 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2409081</guid><dc:creator>PaulSinnema</dc:creator><author>PaulSinnema</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2409081.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1008&amp;PostID=2409081</wfw:commentRss><description>&lt;p&gt;Hi All,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Made a little change to the code. The superfluous Property &amp;#39;EditorText&amp;#39; has been&amp;nbsp;removed.&lt;/p&gt;
&lt;p&gt;Another remark I must make: The interface of this Forum changed the characters &amp;#39;Less than&amp;#39; and &amp;#39;Greater than&amp;#39; into &amp;#39;&amp;amp;ls;&amp;#39; and &amp;#39;&amp;amp;gt;&amp;#39;. They should be the characters!!!!&lt;/p&gt;
&lt;p&gt;Cheers,&lt;br /&gt;Paul.&lt;/p&gt;</description></item><item><title>Re: FYI: How to make FCKeditor work in an UpdatePanel</title><link>http://forums.asp.net/thread/2407255.aspx</link><pubDate>Fri, 06 Jun 2008 17:52:28 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2407255</guid><dc:creator>Giorgio Gatta</dc:creator><author>Giorgio Gatta</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2407255.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1008&amp;PostID=2407255</wfw:commentRss><description>&lt;p&gt;Very thanks man! &lt;br /&gt;this solution worked very well!!!&lt;/p&gt;
&lt;p&gt;Thanks &lt;img src="http://forums.asp.net/emoticons/emotion-21.gif" alt="Yes" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: FYI: How to make FCKeditor work in an UpdatePanel</title><link>http://forums.asp.net/thread/2406343.aspx</link><pubDate>Fri, 06 Jun 2008 12:08:58 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2406343</guid><dc:creator>PaulSinnema</dc:creator><author>PaulSinnema</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2406343.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1008&amp;PostID=2406343</wfw:commentRss><description>&lt;p&gt;Eureka! I finally got it working too. My first attempt was in the wront PreRender. I put it in the PreRender of my Web User Control but that was wrong of course. I&amp;#39;ve now put it in the PreRender of the FCKEditor Control and it works (pfew.. got time after more than a week of struggling). To be complete I posted the code of my Control Below.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;pre class="coloredcode"&gt;&lt;span class="dir"&gt;&amp;lt;%@ Control Language=&amp;quot;C#&amp;quot; AutoEventWireup=&amp;quot;false&amp;quot; CodeFile=&amp;quot;CEditor.ascx.cs&amp;quot; Inherits=&amp;quot;Controls_CEditor&amp;quot; %&amp;gt;
&amp;lt;%@ Register Assembly=&amp;quot;FredCK.FCKeditorV2&amp;quot; Namespace=&amp;quot;FredCK.FCKeditorV2&amp;quot; TagPrefix=&amp;quot;WebLogFCKeditorV2&amp;quot; %&amp;gt;&lt;/span&gt;

&amp;lt;&lt;span class="tag"&gt;asp:Panel&lt;/span&gt;&lt;span class="attr"&gt; runat=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;server&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; id=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;pnlEditorPanel&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; CssClass=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;DropShadowPanel&amp;quot;&lt;/span&gt;
&lt;span class="attr"&gt;            style=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;width:610px; height:410px; padding: 5px;&amp;quot;&lt;/span&gt; &amp;gt;
    &amp;lt;&lt;span class="tag"&gt;WebLogFCKeditorV2:FCKeditor&lt;/span&gt;&lt;span class="attr"&gt; ID=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;edtEditor&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; runat=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;server&amp;quot;&lt;/span&gt; 
&lt;span class="attr"&gt;                                    BasePath=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;fckeditor/&amp;quot;&lt;/span&gt;
&lt;span class="attr"&gt;                                    Width=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;600px&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; Height=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;400px&amp;quot;&lt;/span&gt;
&lt;span class="attr"&gt;                                    EnableViewState=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;true&amp;quot;&lt;/span&gt;
&lt;span class="attr"&gt;                                    OnPreRender=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;edtEditor_PreRender&amp;quot;&lt;/span&gt; /&amp;gt;
&amp;lt;/&lt;span class="tag"&gt;asp:Panel&lt;/span&gt;&amp;gt;
&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;pre class="coloredcode"&gt;&lt;span class="kwd"&gt;using&lt;/span&gt; System;
&lt;span class="kwd"&gt;using&lt;/span&gt; System.Data;
&lt;span class="kwd"&gt;using&lt;/span&gt; System.Configuration;
&lt;span class="kwd"&gt;using&lt;/span&gt; System.Collections;
&lt;span class="kwd"&gt;using&lt;/span&gt; System.Web;
&lt;span class="kwd"&gt;using&lt;/span&gt; System.Web.Security;
&lt;span class="kwd"&gt;using&lt;/span&gt; System.Web.UI;
&lt;span class="kwd"&gt;using&lt;/span&gt; System.Web.UI.WebControls;
&lt;span class="kwd"&gt;using&lt;/span&gt; System.Web.UI.WebControls.WebParts;
&lt;span class="kwd"&gt;using&lt;/span&gt; System.Web.UI.HtmlControls;
&lt;span class="kwd"&gt;using&lt;/span&gt; MyLibrary.Common;

&lt;span class="kwd"&gt;public&lt;/span&gt; partial &lt;span class="kwd"&gt;class&lt;/span&gt; Controls_CEditor : System.Web.UI.UserControl
{
    &lt;span class="kwd"&gt;private const string&lt;/span&gt; cstrEditorViewState = &lt;span class="st"&gt;&amp;quot;EditorViewState&amp;quot;&lt;/span&gt;;

    &lt;span class="kwd"&gt;public string&lt;/span&gt; Text
    {
        &lt;span class="kwd"&gt;get&lt;/span&gt;
        {
            &lt;span class="kwd"&gt;return&lt;/span&gt; CHTML.HTMLToString(edtEditor.Value);
        }
        &lt;span class="kwd"&gt;set&lt;/span&gt;
        {
            edtEditor.Value = CHTML.StringToHTML(&lt;span class="kwd"&gt;value&lt;/span&gt;);
        }
    }

    &lt;span class="kwd"&gt;protected void&lt;/span&gt; edtEditor_PreRender(&lt;span class="kwd"&gt;object&lt;/span&gt; sender, EventArgs e)
    {
        ScriptManager current = ScriptManager.GetCurrent(&lt;span class="kwd"&gt;this&lt;/span&gt;.Page);

        String script = @&lt;span class="st"&gt;&amp;quot;function FCKUpdateLinkedField(id)
                            {
                                try
                                {
                                    if(typeof(FCKeditorAPI) == &amp;#39;object&amp;#39;)
                                    {
                                        FCKeditorAPI.GetInstance(id).UpdateLinkedField();
                                    }
                                }
                                catch(err)
                                {
                                }
                            }&amp;quot;&lt;/span&gt;;

        &lt;span class="kwd"&gt;if&lt;/span&gt; (current != &lt;span class="kwd"&gt;null&lt;/span&gt;)
        {
            ScriptManager.RegisterClientScriptBlock(&lt;span class="kwd"&gt;this&lt;/span&gt;,
                                                    &lt;span class="kwd"&gt;typeof&lt;/span&gt;(Controls_CEditor),
                                                    &lt;span class="st"&gt;&amp;quot;FCKUpdater&amp;quot;&lt;/span&gt;,
                                                    script,
                                                    &lt;span class="kwd"&gt;true&lt;/span&gt;);
            ScriptManager.RegisterOnSubmitStatement(&lt;span class="kwd"&gt;this&lt;/span&gt;,
                                                    &lt;span class="kwd"&gt;typeof&lt;/span&gt;(Controls_CEditor),
                                                    &lt;span class="st"&gt;&amp;quot;WebContentManagerEditorScript_&amp;quot;&lt;/span&gt; + &lt;span class="kwd"&gt;this&lt;/span&gt;.edtEditor.ClientID,
                                                    &lt;span class="st"&gt;&amp;quot;FCKUpdateLinkedField(&amp;#39;&amp;quot;&lt;/span&gt; + &lt;span class="kwd"&gt;this&lt;/span&gt;.edtEditor.ClientID + &lt;span class="st"&gt;&amp;quot;&amp;#39;);&amp;quot;&lt;/span&gt;);
        }
        &lt;span class="kwd"&gt;else&lt;/span&gt;
        {
            Page.ClientScript.RegisterClientScriptBlock(&lt;span class="kwd"&gt;typeof&lt;/span&gt;(Controls_CEditor),
                                                        &lt;span class="st"&gt;&amp;quot;FCKUpdater&amp;quot;&lt;/span&gt;,
                                                        script,
                                                        &lt;span class="kwd"&gt;true&lt;/span&gt;);

            &lt;span class="kwd"&gt;this&lt;/span&gt;.Page.ClientScript.RegisterOnSubmitStatement(&lt;span class="kwd"&gt;typeof&lt;/span&gt;(Controls_CEditor),
                                                             &lt;span class="st"&gt;&amp;quot;WebContentManagerEditorScript_&amp;quot;&lt;/span&gt; + &lt;span class="kwd"&gt;this&lt;/span&gt;.edtEditor.ClientID,
                                                             &lt;span class="st"&gt;&amp;quot;FCKUpdateLinkedField(&amp;#39;&amp;quot;&lt;/span&gt; + &lt;span class="kwd"&gt;this&lt;/span&gt;.edtEditor.ClientID + &lt;span class="st"&gt;&amp;quot;&amp;#39;);&amp;quot;&lt;/span&gt;);
        }
    }
}
&lt;/pre&gt;&lt;pre class="coloredcode"&gt;The CHTML Class changes the HTML to String and Vice Versa like this:&lt;/pre&gt;&lt;pre class="coloredcode"&gt;&amp;nbsp;&lt;pre class="coloredcode"&gt;&lt;span class="kwd"&gt;using&lt;/span&gt; System;
&lt;span class="kwd"&gt;using&lt;/span&gt; System.Collections.Generic;
&lt;span class="kwd"&gt;using&lt;/span&gt; System.Text;

&lt;span class="kwd"&gt;namespace&lt;/span&gt; MyLibrary.Common
{
    &lt;span class="kwd"&gt;public class&lt;/span&gt; CHTML
    {
        &lt;span class="kwd"&gt;private const string&lt;/span&gt; cstrTransLessThen      = &lt;span class="st"&gt;&amp;quot;#LS#&amp;quot;&lt;/span&gt;;
        &lt;span class="kwd"&gt;private const string&lt;/span&gt; cstrTransGreaterThen   = &lt;span class="st"&gt;&amp;quot;#GT#&amp;quot;&lt;/span&gt;;

        &lt;span class="kwd"&gt;public static string&lt;/span&gt; StringToHTML(&lt;span class="kwd"&gt;string&lt;/span&gt; pstrString)
        {
            &lt;span class="kwd"&gt;return&lt;/span&gt; pstrString.Replace(cstrTransGreaterThen, &lt;span class="st"&gt;&amp;quot;&amp;amp;gt;&amp;quot;&lt;/span&gt;).Replace(cstrTransLessThen, &lt;span class="st"&gt;&amp;quot;&amp;amp;lt;&amp;quot;&lt;/span&gt;);
        }

        &lt;span class="kwd"&gt;public static string&lt;/span&gt; HTMLToString(&lt;span class="kwd"&gt;string&lt;/span&gt; pstrHTML)
        {
            &lt;span class="kwd"&gt;return&lt;/span&gt; pstrHTML.Replace(&lt;span class="st"&gt;&amp;quot;&amp;amp;gt;&amp;quot;&lt;/span&gt;, cstrTransGreaterThen).Replace(&lt;span class="st"&gt;&amp;quot;&amp;amp;lt;&amp;quot;&lt;/span&gt;, cstrTransLessThen);
        }
    }
}
&lt;/pre&gt;&amp;nbsp;&lt;/pre&gt;
&lt;p&gt;Thanks all for sharing this info.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;br /&gt;Paul.&lt;/p&gt;</description></item><item><title>Re: FYI: How to make FCKeditor work in an UpdatePanel</title><link>http://forums.asp.net/thread/2405165.aspx</link><pubDate>Thu, 05 Jun 2008 22:55:04 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2405165</guid><dc:creator>puneet.bhagat</dc:creator><author>puneet.bhagat</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2405165.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1008&amp;PostID=2405165</wfw:commentRss><description>&lt;p&gt;Thanks for sharing the solution. It worked at first attemp!&lt;/p&gt;
&lt;p&gt;Thanks again.&lt;/p&gt;</description></item><item><title>Re: FYI: How to make FCKeditor work in an UpdatePanel</title><link>http://forums.asp.net/thread/2404970.aspx</link><pubDate>Thu, 05 Jun 2008 20:41:10 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2404970</guid><dc:creator>PaulSinnema</dc:creator><author>PaulSinnema</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2404970.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1008&amp;PostID=2404970</wfw:commentRss><description>&lt;p&gt;Spending $999 is not what I have in mind at the moment. Telerik may (or may not) have solved the problems I currently experience. No seriously, I am still at it and I have set my mind to solving this. So if anyone has some (constructive) pointers I am all ears.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: FYI: How to make FCKeditor work in an UpdatePanel</title><link>http://forums.asp.net/thread/2389311.aspx</link><pubDate>Thu, 29 May 2008 22:08:43 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2389311</guid><dc:creator>coderGeek</dc:creator><author>coderGeek</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2389311.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1008&amp;PostID=2389311</wfw:commentRss><description>&lt;p&gt;Paul,&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Save yourself a lot of headache and time and use Telerik&amp;#39;s editor instead of FCK.&amp;nbsp; FCK is not widely used on the .NET platform and therefore you will run into problem after problem.&amp;nbsp; Telerik&amp;#39;s solution was built on Microsoft Ajax (Atlas) and seems better suited for the ASP.NET world.&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: FYI: How to make FCKeditor work in an UpdatePanel</title><link>http://forums.asp.net/thread/2387697.aspx</link><pubDate>Thu, 29 May 2008 09:43:18 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2387697</guid><dc:creator>PaulSinnema</dc:creator><author>PaulSinnema</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2387697.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1008&amp;PostID=2387697</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;I can see this is a pretty old post. Incredible that the same error still exists. I&amp;#39;m using the FCKEditor inside a GridView which is inside an updatepanel (amongst others like Multiview, View, etc..). The Solution you presented doesn&amp;#39;t seem to work for me. Here some of the Code I&amp;#39;ve written. Anyone got a clue to why this is not working? I&amp;#39;m trying to get it working with the Standard &amp;#39;Edit&amp;#39; button.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Paul&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;pre class="coloredcode"&gt;...&lt;br /&gt;&lt;br /&gt;                    &amp;lt;asp:GridView ID=&amp;quot;gvComment&amp;quot; runat=&amp;quot;server&amp;quot; &lt;br /&gt;                                    AutoGenerateColumns=&amp;quot;False&amp;quot; &lt;br /&gt;                                    DataKeyNames=&amp;quot;CommentID,ForeignKey,ForeignTopic&amp;quot;&lt;br /&gt;                                    AllowPaging=&amp;quot;True&amp;quot; &lt;br /&gt;                                    AllowSorting=&amp;quot;True&amp;quot;&lt;br /&gt;                                    CssClass=&amp;quot;gridview&amp;quot; &lt;br /&gt;                                    DataSourceID=&amp;quot;dsComment&amp;quot; &lt;br /&gt;                                    AutoGenerateDeleteButton=&amp;quot;True&amp;quot; &lt;br /&gt;                                    AutoGenerateEditButton=&amp;quot;True&amp;quot; &amp;gt;&lt;br /&gt;                        &amp;lt;Columns&amp;gt;&lt;br /&gt;                            &amp;lt;asp:TemplateField HeaderText=&amp;quot;Text&amp;quot; SortExpression=&amp;quot;Text&amp;quot;&amp;gt;&lt;br /&gt;                                &amp;lt;EditItemTemplate&amp;gt;&lt;br /&gt;                                    &amp;lt;FCKeditorV2:FCKeditor ID=&amp;quot;fckCommentEditor&amp;quot; runat=&amp;quot;server&amp;quot; &lt;br /&gt;                                                            BasePath=&amp;quot;fckeditor/&amp;quot;&lt;br /&gt;                                                            Value=&amp;#39;&amp;lt;%# Bind(&amp;quot;Text&amp;quot;) %&amp;gt;&amp;#39; &lt;br /&gt;                                                            OnLoad=&amp;quot;fckCommentEditor_Load&amp;quot; &amp;gt;&lt;br /&gt;                                    &amp;lt;/FCKeditorV2:FCKeditor&amp;gt;&lt;br /&gt;                                &amp;lt;/EditItemTemplate&amp;gt;&lt;br /&gt;                                    &lt;br /&gt;                                &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;...&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;quot;javascript&amp;quot;&lt;/span&gt; type=&lt;span class="st"&gt;&amp;quot;text/javascript&amp;quot;&lt;/span&gt;&amp;gt;
    function FCKUpdateLinkedField(id)
    {
        &lt;span class="kwd"&gt;try&lt;/span&gt;
        {
            &lt;span class="kwd"&gt;if&lt;/span&gt;(&lt;span class="kwd"&gt;typeof&lt;/span&gt;(FCKeditorAPI) == &lt;span class="st"&gt;&amp;quot;object&amp;quot;&lt;/span&gt;)
            {
                FCKeditorAPI.GetInstance(id).UpdateLinkedField();
            }
        }
        &lt;span class="kwd"&gt;catch&lt;/span&gt;(err)
        {
        }
    }
&lt;br /&gt;&lt;br /&gt;...&lt;br /&gt;&lt;br /&gt;    &lt;span class="kwd"&gt;private void&lt;/span&gt; CreateFCKWorkarround(&lt;span class="kwd"&gt;object&lt;/span&gt; sender)&lt;br /&gt;    {&lt;br /&gt;        FCKeditor fe                = (FCKeditor)sender;&lt;br /&gt;        ClientScriptManager csm     = Page.ClientScript;&lt;br /&gt;        Type feType                 = fe.GetType();&lt;br /&gt;        &lt;span class="kwd"&gt;string&lt;/span&gt; strName              = &lt;span class="st"&gt;&amp;quot;wa_fckeditor&amp;quot;&lt;/span&gt;;&lt;br /&gt;&lt;br /&gt;        &lt;span class="kwd"&gt;if&lt;/span&gt; (fe != &lt;span class="kwd"&gt;null&lt;/span&gt;)&lt;br /&gt;        {&lt;br /&gt;            &lt;span class="kwd"&gt;if&lt;/span&gt; (!csm.IsOnSubmitStatementRegistered(feType, strName))&lt;br /&gt;            {&lt;br /&gt;                csm.RegisterOnSubmitStatement(feType, strName,&lt;br /&gt;                                                &lt;span class="st"&gt;&amp;quot;FCKUpdateLinkedField(&amp;#39;&amp;quot;&lt;/span&gt; + fe.ClientID + &lt;span class="st"&gt;&amp;quot;&amp;#39;);&amp;quot;&lt;/span&gt;);&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;    &lt;span class="kwd"&gt;protected void&lt;/span&gt; fckCommentEditor_Load(&lt;span class="kwd"&gt;object&lt;/span&gt; sender, EventArgs e)&lt;br /&gt;    {&lt;br /&gt;        CreateFCKWorkarround(sender);&lt;br /&gt;    }&lt;br /&gt;&lt;/pre&gt;&amp;nbsp;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: FYI: How to make FCKeditor work in an UpdatePanel</title><link>http://forums.asp.net/thread/2297814.aspx</link><pubDate>Tue, 15 Apr 2008 03:14:40 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2297814</guid><dc:creator>TylerGarlick</dc:creator><author>TylerGarlick</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2297814.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1008&amp;PostID=2297814</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I fixed the FCKEditor and you can download my fix &lt;a href="http://blog.tylergarlick.com/?p=4" title="FCKEditor" target="_blank"&gt;here&lt;/a&gt;.&amp;nbsp; &lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;&amp;nbsp;Tyler Garlick&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: FYI: How to make FCKeditor work in an UpdatePanel</title><link>http://forums.asp.net/thread/2226686.aspx</link><pubDate>Tue, 11 Mar 2008 21:20:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2226686</guid><dc:creator>roki13</dc:creator><author>roki13</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2226686.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1008&amp;PostID=2226686</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;does this work for everyone ?&lt;/p&gt;&lt;p&gt;I still got the problem... &lt;img src="http://forums.asp.net/emoticons/emotion-6.gif" alt="Sad" /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;my code is as following (I got 2 editors in the same update panel):&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;pre class="coloredcode"&gt;&lt;b id="1"&gt;1    &lt;/b&gt;&lt;span class="kwd"&gt;protected override void&lt;/span&gt; OnPreRender(EventArgs e)
&lt;b id="2"&gt;2    &lt;/b&gt;    {
&lt;b id="3"&gt;3    &lt;/b&gt;        &lt;span class="kwd"&gt;if&lt;/span&gt; (!&lt;span class="kwd"&gt;this&lt;/span&gt;.Page.IsPostBack)
&lt;b id="4"&gt;4    &lt;/b&gt;        {
&lt;b id="5"&gt;5    &lt;/b&gt;
&lt;b id="6"&gt;6    &lt;/b&gt;            ScriptManager current = ScriptManager.GetCurrent(&lt;span class="kwd"&gt;this&lt;/span&gt;.Page);
&lt;b id="7"&gt;7    &lt;/b&gt;
&lt;b id="8"&gt;8    &lt;/b&gt;            String script = @&lt;span class="st"&gt;&amp;quot;function FCKUpdateLinkedField(id)
&lt;b id="9"&gt;9    &lt;/b&gt;                                {
&lt;b id="10"&gt;10   &lt;/b&gt;                                    try
&lt;b id="11"&gt;11   &lt;/b&gt;                                    {
&lt;b id="12"&gt;12   &lt;/b&gt;                                        if(typeof(FCKeditorAPI) == &amp;#39;object&amp;#39;)
&lt;b id="13"&gt;13   &lt;/b&gt;                                        {
&lt;b id="14"&gt;14   &lt;/b&gt;                                            FCKeditorAPI.GetInstance(id).UpdateLinkedField();
&lt;b id="15"&gt;15   &lt;/b&gt;                                        }
&lt;b id="16"&gt;16   &lt;/b&gt;                                    }
&lt;b id="17"&gt;17   &lt;/b&gt;                                    catch(err)
&lt;b id="18"&gt;18   &lt;/b&gt;                                    {
&lt;b id="19"&gt;19   &lt;/b&gt;                                    }
&lt;b id="20"&gt;20   &lt;/b&gt;                                }&amp;quot;&lt;/span&gt;;
&lt;b id="21"&gt;21   &lt;/b&gt;            &lt;span class="kwd"&gt;if&lt;/span&gt; (current != &lt;span class="kwd"&gt;null&lt;/span&gt;)
&lt;b id="22"&gt;22   &lt;/b&gt;            {
&lt;b id="23"&gt;23   &lt;/b&gt;
&lt;b id="24"&gt;24   &lt;/b&gt;                ScriptManager.RegisterClientScriptBlock(&lt;span class="kwd"&gt;this&lt;/span&gt;,
&lt;b id="25"&gt;25   &lt;/b&gt;                                                        &lt;span class="kwd"&gt;typeof&lt;/span&gt;(_CMS),
&lt;b id="26"&gt;26   &lt;/b&gt;                                                        &lt;span class="st"&gt;&amp;quot;FCKUpdater&amp;quot;&lt;/span&gt;,
&lt;b id="27"&gt;27   &lt;/b&gt;                                                        script,
&lt;b id="28"&gt;28   &lt;/b&gt;                                                        &lt;span class="kwd"&gt;true&lt;/span&gt;);
&lt;b id="29"&gt;29   &lt;/b&gt;
&lt;b id="30"&gt;30   &lt;/b&gt;                ScriptManager.RegisterOnSubmitStatement(&lt;span class="kwd"&gt;this&lt;/span&gt;,
&lt;b id="31"&gt;31   &lt;/b&gt;                                                        &lt;span class="kwd"&gt;typeof&lt;/span&gt;(_CMS),
&lt;b id="32"&gt;32   &lt;/b&gt;                                                        &lt;span class="st"&gt;&amp;quot;WebContentManagerEditorScript_&amp;quot;&lt;/span&gt; + &lt;span class="kwd"&gt;this&lt;/span&gt;.FCKeditorText1.ClientID,
&lt;b id="33"&gt;33   &lt;/b&gt;                                                        &lt;span class="st"&gt;&amp;quot;FCKUpdateLinkedField(&amp;#39;&amp;quot;&lt;/span&gt; + &lt;span class="kwd"&gt;this&lt;/span&gt;.FCKeditorText1.ClientID + &lt;span class="st"&gt;&amp;quot;&amp;#39;);&amp;quot;&lt;/span&gt;);
&lt;b id="34"&gt;34   &lt;/b&gt;
&lt;b id="35"&gt;35   &lt;/b&gt;                ScriptManager.RegisterOnSubmitStatement(&lt;span class="kwd"&gt;this&lt;/span&gt;,
&lt;b id="36"&gt;36   &lt;/b&gt;                                                        &lt;span class="kwd"&gt;typeof&lt;/span&gt;(_CMS),
&lt;b id="37"&gt;37   &lt;/b&gt;                                                        &lt;span class="st"&gt;&amp;quot;WebContentManagerEditorScript_&amp;quot;&lt;/span&gt; + &lt;span class="kwd"&gt;this&lt;/span&gt;.FCKeditorText2.ClientID,
&lt;b id="38"&gt;38   &lt;/b&gt;                                                        &lt;span class="st"&gt;&amp;quot;FCKUpdateLinkedField(&amp;#39;&amp;quot;&lt;/span&gt; + &lt;span class="kwd"&gt;this&lt;/span&gt;.FCKeditorText2.ClientID + &lt;span class="st"&gt;&amp;quot;&amp;#39;);&amp;quot;&lt;/span&gt;);
&lt;b id="39"&gt;39   &lt;/b&gt;            }
&lt;b id="40"&gt;40   &lt;/b&gt;            &lt;span class="kwd"&gt;else&lt;/span&gt;
&lt;b id="41"&gt;41   &lt;/b&gt;            {
&lt;b id="42"&gt;42   &lt;/b&gt;                Page.ClientScript.RegisterClientScriptBlock(&lt;span class="kwd"&gt;typeof&lt;/span&gt;(_CMS),
&lt;b id="43"&gt;43   &lt;/b&gt;                                                            &lt;span class="st"&gt;&amp;quot;FCKUpdater&amp;quot;&lt;/span&gt;,
&lt;b id="44"&gt;44   &lt;/b&gt;                                                            script,
&lt;b id="45"&gt;45   &lt;/b&gt;                                                            &lt;span class="kwd"&gt;true&lt;/span&gt;);
&lt;b id="46"&gt;46   &lt;/b&gt;
&lt;b id="47"&gt;47   &lt;/b&gt;                &lt;span class="kwd"&gt;this&lt;/span&gt;.Page.ClientScript.RegisterOnSubmitStatement(&lt;span class="kwd"&gt;typeof&lt;/span&gt;(_CMS),
&lt;b id="48"&gt;48   &lt;/b&gt;                                                       &lt;span class="st"&gt;&amp;quot;WebContentManagerEditorScript_&amp;quot;&lt;/span&gt; + &lt;span class="kwd"&gt;this&lt;/span&gt;.FCKeditorText1.ClientID,
&lt;b id="49"&gt;49   &lt;/b&gt;                                                        &lt;span class="st"&gt;&amp;quot;FCKUpdateLinkedField(&amp;#39;&amp;quot;&lt;/span&gt; + &lt;span class="kwd"&gt;this&lt;/span&gt;.FCKeditorText1.ClientID + &lt;span class="st"&gt;&amp;quot;&amp;#39;);&amp;quot;&lt;/span&gt;);
&lt;b id="50"&gt;50   &lt;/b&gt;
&lt;b id="51"&gt;51   &lt;/b&gt;                &lt;span class="kwd"&gt;this&lt;/span&gt;.Page.ClientScript.RegisterOnSubmitStatement(&lt;span class="kwd"&gt;typeof&lt;/span&gt;(_CMS),
&lt;b id="52"&gt;52   &lt;/b&gt;                                                       &lt;span class="st"&gt;&amp;quot;WebContentManagerEditorScript_&amp;quot;&lt;/span&gt; + &lt;span class="kwd"&gt;this&lt;/span&gt;.FCKeditorText2.ClientID,
&lt;b id="53"&gt;53   &lt;/b&gt;                                                        &lt;span class="st"&gt;&amp;quot;FCKUpdateLinkedField(&amp;#39;&amp;quot;&lt;/span&gt; + &lt;span class="kwd"&gt;this&lt;/span&gt;.FCKeditorText2.ClientID + &lt;span class="st"&gt;&amp;quot;&amp;#39;);&amp;quot;&lt;/span&gt;);
&lt;b id="54"&gt;54   &lt;/b&gt;            }
&lt;b id="55"&gt;55   &lt;/b&gt;        }
&lt;b id="56"&gt;56   &lt;/b&gt;
&lt;b id="57"&gt;57   &lt;/b&gt;        &lt;span class="kwd"&gt;base&lt;/span&gt;.OnPreRender(e);
&lt;b id="58"&gt;58   &lt;/b&gt;    }
&lt;/pre&gt;&amp;nbsp;&lt;br /&gt;&amp;nbsp;</description></item></channel></rss>