Cute Editor 6.4 with multiple ModalPopupExtenders in updatepanel IE 8

  •  09-30-2009, 2:11 PM

    Cute Editor 6.4 with multiple ModalPopupExtenders in updatepanel IE 8

    We are evaluating the product and seem to be having a problem using the cuteeditor with multiple modalpopupextenders.
     
    While running this from the VS2008 environment the application hangs and I have to kill the vs app and start again.
     
    If I run this from a site I deploy to I get Object reference not set to an instance of an object.
     
    Below is the code that can be used to duplicate the problem.
     
    Click on the Edit Title and then Close and error occurs.
     
    The real application I am working on has 4 modalpopupextenders and all seems to work fine. When I add the CuteEditor with a modalpopupextender the problem occurs.
     
    If I put the cuteeditor with a modalpopupextender by itself on the page, Everything works fine.
     
    I've tried FreeTextBox and it does not work in an updatepanel, ComponentArt Editor too is giving me problems. So far this is the only one I got working by itself on a page with modalpopupextender.
     
    Could you please let us know if it is possible to use this product with multiple modalpopupextenders?
     
    CS Code Below
    /* *********** Begin CS Code ****************/

    public partial class BuilderPages_Test3 : System.Web.UI.Page

    {

       protected void Page_Load(object sender, EventArgs e)
       {
       }
       protected void Save_Click(object sender, ImageClickEventArgs e)
       {
       }
     
       protected void Close_Click(object sender, ImageClickEventArgs e)
       {
       }
       protected void EditContent_Click(object sender, ImageClickEventArgs e)
       {   
          PanelPage_ModalPopupExtender.Show();
       }   
     
       protected void EditTitle_Click(object sender, ImageClickEventArgs e)
       {
          PanelTitle_ModalPopupExtender.Show();
       }
    }
     
    /* *********** End CS Code ****************/
     
    /******************** BEGIN Form Here *********************/
    <%
    @ Page Language="C#" AutoEventWireup="true" CodeFile="Test3.aspx.cs" Inherits="BuilderPages_Test3" %>

    <%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>

    <%@ Register TagPrefix="CE" Namespace="CuteEditor" Assembly="CuteEditor" %>

    <!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 id="Head1" runat="server">
     
       <title>Untitled Page</title>
     
       <link href="includes/BuilderStyles.css" rel="stylesheet" type="text/css" id="BuilderCss"/>

    </head>

    <body>

       <form id="form1" runat="server">

       <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>

       <asp:UpdatePanel ID="UpdatePanel1" runat="server">
       
       <ContentTemplate>

       <div>

          <asp:Panel ID="PanelTitle" runat="server" CssClass="ModalPopup" Width="100%" Height="500">

             <asp:Label ID="Label1" BorderStyle="Inset" runat="server" Text="Testing"></asp:Label>

             <asp:ImageButton ID="Close" runat="server" ImageUrl="Images/Close.png" OnClick="Close_Click" />

          </asp:Panel>

     

          <cc1:ModalPopupExtender ID="PanelTitle_ModalPopupExtender" runat="server" BackgroundCssClass="GrayedOut" Enabled="True" TargetControlID="EditTitle" PopupControlID="PanelTitle" DropShadow="false" ></cc1:ModalPopupExtender>

          <asp:ImageButton ID="EditTitle" runat="server" ImageUrl="images/Edit.png" onclick="EditTitle_Click" />

       </div>

       <div>

          <asp:Panel ID="PanelPage" runat="server" CssClass="ModalPopup" Width="100%" Height="500">

          <table style="width:100%;text-align:left;">
     
             <tr>

                <td>

                   <CE:Editor id="PageContent" runat="server" AutoConfigure="Simple" Width="100%" Height="100%" />

                </td>

             </tr>

             <tr>

                <td align="right">

                   <asp:ImageButton ID="Save" runat="server" ImageUrl="Images/Save.png" CommandName="Save" OnClick="Save_Click" />

                </td>

             </tr>

          </table>

       </asp:Panel>

       <cc1:ModalPopupExtender ID="PanelPage_ModalPopupExtender" runat="server" BackgroundCssClass="GrayedOut" Enabled="True" TargetControlID="EditContent" PopupControlID="PanelPage" DropShadow="false"   
       </
    cc1:ModalPopupExtender>

       <asp:ImageButton ID="EditContent" runat="server" CssClass="TopOfContent" ImageUrl="images/Edit.png" onclick="EditContent_Click" />

       </div>

    </ContentTemplate>

    </asp:UpdatePanel>

    </form>

    </body>

    </html>

    /******************** End Form Here *********************/
     
    Thanks
    Brendan
    Filed under:
View Complete Thread