I use cute editor 6.3 for .net in a asp:panel tag. When page load in first time the panel visibility is "false", after press a button in page the panel visibility becomes "true" and cute editor is shown in browser but when I press another button and change the panel visibility to "false" and again "true" and error occur in Internet Explorer and toolbar of cute editor is not shown and it hang.
the error is:
Message: 'document[...]' is null or not an object
Line: 1
Char: 1
Code: 0
URI: http://localhost/---/---/Default2.aspx
Message: Object doesn't support this property or method
Line: 1
Char: 1
Code: 0
URI: http://localhost/---/---/Default2.aspx
Message: 'null' is null or not an object
Line: 1
Char: 1
Code: 0
URI: http://localhost/---/---/Default2.aspx
The server side HTML tags:
<asp:UpdatePanel ID="updGridInformationDetail" runat="server" ChildrenAsTriggers="False"
UpdateMode="Conditional">
<ContentTemplate>
<asp:Panel ID="pnlGridInformationDetail" runat="server">
<fieldset class="CfldFieldSet">
<legend>
<span style="vertical-align: 14px; font-size: 14px;">Details</span> </legend>
<table class="CtblSettings">
<tr>
<td>
</td>
</tr>
<tr>
<td>
</td>
</tr>
<tr>
<td>
Description:
<asp:UpdatePanel ID="updCE" runat="server" ChildrenAsTriggers="False"
UpdateMode="Conditional">
<ContentTemplate>
<asp:Panel ID="pnlCE" runat="server" Width="100%">
<table width="100%">
<tr>
<td align="center">
<CE:Editor ID="ceDescription" runat="server">
</CE:Editor>
</td>
</tr>
</table>
</asp:Panel>
</ContentTemplate>
</asp:UpdatePanel>
</td>
</tr>
<tr>
<td align="center">
<asp:Button ID="btnCloseGridInformationDetail" runat="server"
CssClass="CbtnButton" OnClick="btnCloseGridInformationDetail_Click"
Text="Close Cute Editor" />
</td>
</tr>
<tr>
<td>
</td>
</tr>
</table>
</fieldset></asp:Panel>
</ContentTemplate>
</asp:UpdatePanel>
and the code behind in C# is:
protected void Page_Load(object sender, EventArgs e){ if (!IsPostBack) { pnlGridInformationDetail.Visible = false; updGridInformationDetail.Update(); }}protected void btnSearch_Click(object sender, EventArgs e){ pnlGridInformationDetail.Visible = true; updGridInformationDetail.Update();}protected void btnSaveInformationDetail_Click(object sender, EventArgs e){}protected void btnCloseGridInformationDetail_Click(object sender, EventArgs e){ pnlGridInformationDetail.Visible = false; updGridInformationDetail.Update();}