Re: access denied error when trying to insert a link, picture or flash

  •  05-13-2009, 3:00 AM

    Re: access denied error when trying to insert a link, picture or flash

    Hi Yuvika,
     
    Download the latest version and try this example:
     
    Download:
     
     
    ------------------------------------------------------------------------------------------------->

    <%@ Page Language="C#" %>

    <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
    <%@ Register TagPrefix="CuteEditor" 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 runat="server">
        <title>test</title>

        <script runat="server">
                protected void close_Click(object sender, EventArgs e)
            {
                ModalPopupExtender1.Hide();
            }
        </script>
    <script>
    function closeClick()
    {
    var editor1 = document.getElementById('<% = Editor1.ClientID%>');
    editor1.SetHTML('');
    editor1.ExecCommand("TabEdit");
    }

    </script>
    </head>
    <body>
        <form id="form1" runat="server">
        <div>
            <asp:ScriptManager ID="ScriptManager1" runat="server">
            </asp:ScriptManager>
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
                    <ajaxToolkit:ModalPopupExtender ID="ModalPopupExtender1" runat="server" PopupControlID="panel1"
                        TargetControlID="edit">
                    </ajaxToolkit:ModalPopupExtender>
                    <asp:Panel ID="panel1" runat="server">
                        <CuteEditor:Editor ID="Editor1" runat="server">
                        </CuteEditor:Editor>
                        <asp:Button ID="close" Text="Close" runat="server" OnClick="close_Click" OnClientClick="closeClick()" />
                    </asp:Panel>
                    <asp:Button ID="edit" runat="server" Text="Edit" />
                </ContentTemplate>
            </asp:UpdatePanel>
        </div>
        </form>
    </body>
    </html>

     ------------------------------------------------------------------------------------------------->
     
    Regards,
     
    Ken
View Complete Thread