﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebTextEditor - WebTextEditor Load Dynamically an user control containing a WebTextEditor with fileuploader</title><link>http://www.intersoftsolutions.com/Community/WebTextEditor/WebTextEditor-Load-Dynamically-an-user-control-containing-a-WebTextEditor-with-fileuploader/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>WebTextEditor Load Dynamically an user control containing a WebTextEditor with fileuploader</title><link>http://www.intersoftsolutions.com/Community/WebTextEditor/WebTextEditor-Load-Dynamically-an-user-control-containing-a-WebTextEditor-with-fileuploader/</link><pubDate>Thu, 17 Mar 2011 01:56:53 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hello Nicolas,&lt;/p&gt;&lt;p&gt;Can you send more details about the issue? I can run it well in here. Do we still talk about the same error? If not, please create a new thread regarding this issue.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>WebTextEditor Load Dynamically an user control containing a WebTextEditor with fileuploader</title><link>http://www.intersoftsolutions.com/Community/WebTextEditor/WebTextEditor-Load-Dynamically-an-user-control-containing-a-WebTextEditor-with-fileuploader/</link><pubDate>Wed, 16 Mar 2011 12:38:05 GMT</pubDate><dc:creator>supporti-track.pmi@pmintl.com</dc:creator><description>&lt;p&gt;Hello Handy,&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;I just found the bug: the panel containing webtexteditor was hidden at first page load and that was causing the error afterwards.&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Nicolas&lt;/p&gt;</description></item><item><title>WebTextEditor Load Dynamically an user control containing a WebTextEditor with fileuploader</title><link>http://www.intersoftsolutions.com/Community/WebTextEditor/WebTextEditor-Load-Dynamically-an-user-control-containing-a-WebTextEditor-with-fileuploader/</link><pubDate>Sun, 13 Mar 2011 22:53:49 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;Can you let us know your web.config settings? Please discard your runtime license before attached the files.&lt;br /&gt;If you deployed in IIS7 environment, please read how to configure WebTextEditor under IIS7 in our documentation.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>WebTextEditor Load Dynamically an user control containing a WebTextEditor with fileuploader</title><link>http://www.intersoftsolutions.com/Community/WebTextEditor/WebTextEditor-Load-Dynamically-an-user-control-containing-a-WebTextEditor-with-fileuploader/</link><pubDate>Fri, 11 Mar 2011 08:05:24 GMT</pubDate><dc:creator>supporti-track.pmi@pmintl.com</dc:creator><description>&lt;p&gt;I also run the sample without issue.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;However, when I include it in our website, the message "FileUploaded is not enabled" appears (with the same code...)&lt;/p&gt;</description></item><item><title>WebTextEditor Load Dynamically an user control containing a WebTextEditor with fileuploader</title><link>http://www.intersoftsolutions.com/Community/WebTextEditor/WebTextEditor-Load-Dynamically-an-user-control-containing-a-WebTextEditor-with-fileuploader/</link><pubDate>Thu, 10 Mar 2011 01:23:26 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hello Nicolas,&lt;/p&gt;&lt;p&gt;I run the sample without issue in here. Would you mind to send us a simple sample that replicates the issue? More details such as how to replicate the issue would also help.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>WebTextEditor Load Dynamically an user control containing a WebTextEditor with fileuploader</title><link>http://www.intersoftsolutions.com/Community/WebTextEditor/WebTextEditor-Load-Dynamically-an-user-control-containing-a-WebTextEditor-with-fileuploader/</link><pubDate>Tue, 08 Mar 2011 07:10:18 GMT</pubDate><dc:creator>supporti-track.pmi@pmintl.com</dc:creator><description>&lt;p&gt;Dear Handy,&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;I tried to move the code into textEditor_PreInitialize server side event.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;However, I still have a message "File Uploader is not enabled" when I click the option "Insert from Computer" with the following code:&lt;/p&gt;&lt;pre&gt;&amp;lt;ISWebTextEditor:WebTextEditor ID="textEditor" runat="server" Width="100%" Height="500px"
            EnableViewState="false" DefaultStyleMode="ElegantBlueStyle"
            OnInitializeToolBar="textEditor_InitializeToolBar"
            OnPreInitialize="textEditor_PreInitialize"&amp;gt;
            &amp;lt;FlyPostBackSettings PostControlState="False" PostHiddenFields="False" PostInputControls="True"
            PostViewState="False" /&amp;gt;
            &amp;lt;ToolBarSettings ToolBarMode="Complete" /&amp;gt;
        &amp;lt;/ISWebTextEditor:WebTextEditor&amp;gt;&lt;/pre&gt;

&lt;p&gt;and:&lt;/p&gt;&lt;pre&gt;protected void textEditor_PreInitialize(object sender, EventArgs e)
        {
            // init WebTextEditor Css 
            WebTextEditorCssFile webTextEditorCssFile = new WebTextEditorCssFile
            {
                FilePath = Constant.StylePath &amp;#43; "/Documentation/helpPage.css",
                Type = WebTextEditorCssType.DesignerStyleSheet
            };
            WebTextEditorCssFile webTextEditorCssFile2 = new WebTextEditorCssFile
            {
                FilePath = Constant.StylePath &amp;#43; "/Documentation/helpPage.css",
                Type = WebTextEditorCssType.RuntimeStyleSheet
            };
            textEditor.RootTextEditor.CssFiles.Add(webTextEditorCssFile);
            textEditor.RootTextEditor.CssFiles.Add(webTextEditorCssFile2);

            // Images Library
            WebTextEditorMediaResourceGroup mediaResourceGroup = new WebTextEditorMediaResourceGroup();
            mediaResourceGroup.Name = "media1";
            mediaResourceGroup.Text = "Photos";
            WebTextEditorResource resource = new WebTextEditorResource();
            resource.Name = "Images";
            // Get or create an new folder for the help page, depending on screen name and language
            resource.Url = VirtualPathUtility.ToAbsolute(Path.Combine(ConfigurationManager.AppSettings["DocumentationDirectory"], "Images/"));
            resource.AllowUserUpload = true;

            WebTextEditorResource resource2 = new WebTextEditorResource();
            resource2.Name = "Thumbnails";
            // Get or create an new folder for the help page, depending on screen name and language
            resource2.Url = VirtualPathUtility.ToAbsolute(Path.Combine(ConfigurationManager.AppSettings["DocumentationDirectory"], "Images/"));

            mediaResourceGroup.Resources.Add(resource);
            mediaResourceGroup.Resources.Add(resource2);
            textEditor.MediaResources.Add(mediaResourceGroup);

            // View Settings
            textEditor.ViewSettings.EnableHTMLView = true;
            textEditor.ViewSettings.EnableSplitView = true;
            textEditor.ViewSettings.EnablePreview = true;
            textEditor.ViewSettings.EnableDesignView = true;

            textEditor.FileUploaderSettings.DefaultUploadMediaResource = "Images";
            textEditor.FileUploaderSettings.Enabled = true;
            textEditor.FileUploaderSettings.TotalUploadSizeLimit = 100000; // 100kb limit
            textEditor.FileUploaderSettings.FileTypes = "*.jpg;*.png";
        }&lt;/pre&gt;
&lt;p&gt;Do you have any idea of what is causing file uploader to not be correctly enabled?&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Nicolas&lt;/p&gt;</description></item><item><title>WebTextEditor Load Dynamically an user control containing a WebTextEditor with fileuploader</title><link>http://www.intersoftsolutions.com/Community/WebTextEditor/WebTextEditor-Load-Dynamically-an-user-control-containing-a-WebTextEditor-with-fileuploader/</link><pubDate>Wed, 23 Feb 2011 21:20:49 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hello Nicolas,&lt;/p&gt;&lt;p&gt;You can try to use our UpdateManager to get the latest hotfixes. It has been released. But you need to downgrade the older version before run UpdateManager. Otherwise, it would recognize that you already had the latest.&lt;/p&gt;
&lt;p&gt;Or, you can keep one of the nightly build that we sent before. Please try to use the latest date. The nightly build is close with official version.&lt;/p&gt;
&lt;p&gt;About your current issue, you should not define in PageInit. Please moved the code into textEditor_PreInitialize server side event. It works fine without the error.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>WebTextEditor Load Dynamically an user control containing a WebTextEditor with fileuploader</title><link>http://www.intersoftsolutions.com/Community/WebTextEditor/WebTextEditor-Load-Dynamically-an-user-control-containing-a-WebTextEditor-with-fileuploader/</link><pubDate>Wed, 23 Feb 2011 10:41:46 GMT</pubDate><dc:creator>supporti-track.pmi@pmintl.com</dc:creator><description>&lt;p&gt;Moreover,&lt;/p&gt;
&lt;p&gt;You send us another hotfix for the WebTextEditor :&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.intersoftpt.com/Community/WebTextEditor/WebTextEditor-bookmark-link-corrupted/"&gt;http://www.intersoftpt.com/Community/WebTextEditor/WebTextEditor-bookmark-link-corrupted/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;is it possible to integrate this hotfix in a new release (I mean, to have the 2 hotfixes in the same dll?)&lt;/p&gt;
&lt;p&gt;Thank You.&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Nicolas&lt;/p&gt;</description></item><item><title>WebTextEditor Load Dynamically an user control containing a WebTextEditor with fileuploader</title><link>http://www.intersoftsolutions.com/Community/WebTextEditor/WebTextEditor-Load-Dynamically-an-user-control-containing-a-WebTextEditor-with-fileuploader/</link><pubDate>Wed, 23 Feb 2011 10:37:45 GMT</pubDate><dc:creator>supporti-track.pmi@pmintl.com</dc:creator><description>&lt;p&gt;Hello Handy,&lt;/p&gt;
&lt;p&gt;I tried the hotfix and it worked! Thank you.&lt;/p&gt;
&lt;p&gt;That is, I'm experiencing another bug: when I try to initialize fileUploaderSettings from the code-behind in C# like this &lt;/p&gt;&lt;pre&gt;protected void Page_Init(object sender, EventArgs e)
    {
        // Images Library
        WebTextEditorMediaResourceGroup mediaResourceGroup = new WebTextEditorMediaResourceGroup();
        mediaResourceGroup.Name = "media1";
        mediaResourceGroup.Text = "Photos";
        WebTextEditorResource resource = new WebTextEditorResource();
        resource.Name = "Images";
        // Get or create an new folder for the help page, depending on screen name and language
        resource.Url = "Images/";
        resource.AllowUserUpload = true;
        mediaResourceGroup.Resources.Add(resource);
        textEditor.MediaResources.Add(mediaResourceGroup);

        // View Settings
        textEditor.ViewSettings.EnableHTMLView = true;
        textEditor.ViewSettings.EnableSplitView = true;
        textEditor.ViewSettings.EnablePreview = true;
        textEditor.ViewSettings.EnableDesignView = true;

        textEditor.FileUploaderSettings.DefaultUploadMediaResource = "Images";
        textEditor.FileUploaderSettings.Enabled = true;
        textEditor.FileUploaderSettings.TotalUploadSizeLimit = 100000; // 100kb limit
        textEditor.FileUploaderSettings.FileTypes = "*.jpg;*.png;*.zip";
    }&lt;/pre&gt;
&lt;p&gt;there still is the error "Unable to initialize file uploader"...&lt;/p&gt;
&lt;p&gt;while letting this initialization in .ascx code it works :&lt;/p&gt;&lt;pre&gt;MediaResources&amp;gt;
            &amp;lt;ISWebTextEditor:WebTextEditorMediaResourceGroup Name="media1" Text="Photos"&amp;gt;
                &amp;lt;resources&amp;gt;
                    &amp;lt;ISWebTextEditor:WebTextEditorResource Name="Images" Url="Images/" AllowUserUpload="true" /&amp;gt;
                    &amp;lt;ISWebTextEditor:WebTextEditorResource Name="Thumbnails" Url="Thumbnails/" AllowUserUpload="true" /&amp;gt;
               &amp;lt;/resources&amp;gt;
            &amp;lt;/ISWebTextEditor:WebTextEditorMediaResourceGroup&amp;gt;
        &amp;lt;/MediaResources&amp;gt;
        &amp;lt;ViewSettings EnableHTMLView="false" EnableSplitView="false" /&amp;gt;
        &amp;lt;FileUploaderSettings Enabled="true" DefaultUploadMediaResource="Thumbnails" /&amp;gt;&lt;/pre&gt;
&lt;p&gt;I attached the sample which is not working.&lt;/p&gt;
&lt;p&gt;Can you also fix this?&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Nicolas&lt;/p&gt;</description></item><item><title>WebTextEditor Load Dynamically an user control containing a WebTextEditor with fileuploader</title><link>http://www.intersoftsolutions.com/Community/WebTextEditor/WebTextEditor-Load-Dynamically-an-user-control-containing-a-WebTextEditor-with-fileuploader/</link><pubDate>Mon, 21 Feb 2011 04:47:21 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hello Nicolas,&lt;/p&gt;&lt;p&gt;Here is the attached hotfixes. Please let me know if it also works on you or not.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>WebTextEditor Load Dynamically an user control containing a WebTextEditor with fileuploader</title><link>http://www.intersoftsolutions.com/Community/WebTextEditor/WebTextEditor-Load-Dynamically-an-user-control-containing-a-WebTextEditor-with-fileuploader/</link><pubDate>Thu, 20 Jan 2011 09:33:45 GMT</pubDate><dc:creator>supporti-track.pmi@pmintl.com</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I found a bug in WebTextEditor when using the integration with WebFileUploader.&lt;/p&gt;
&lt;p&gt;What I was trying to do is to load dynamically an User Control in a panel of an .aspx page.&lt;/p&gt;
&lt;p&gt;First, I tried to register my user control ("WebUserControl.acsx"), which did work fine:&lt;/p&gt;&lt;pre&gt;&amp;lt;%@ Page Title="Integration with WebFileUploader" Language="C#" MasterPageFile="./DefaultMasterXHTML.master"
    AutoEventWireup="true" CodeFile="IntegrationWithWebFileUploader.aspx.cs" Inherits="WebTextEditor_IntegrationWithWebFileUploader" %&amp;gt;

&amp;lt;%@ Register Assembly="ISNet.WebUI.WebTextEditor" Namespace="ISNet.WebUI.WebTextEditor"
    TagPrefix="ISWebTextEditor" %&amp;gt;
&amp;lt;%@ Register Src="WebUserControl.ascx" TagName="UcUserControl" TagPrefix="uc1" %&amp;gt;
&amp;lt;asp:Content ID="Content1" ContentPlaceHolderID="content" runat="Server"&amp;gt;

&lt;span style="font-size: 14pt"&gt;&lt;span style="font-size: 12pt"&gt;&lt;strong&gt;&amp;lt;uc1:UcUserControl runat="server" ID="test"/&amp;gt;&lt;/strong&gt;

&lt;/span&gt;&lt;/span&gt;&amp;lt;/asp:Content&amp;gt;&lt;/pre&gt;
&lt;p&gt;Then, I tried to load dynamically the user control, by adding an asp:panel instead of directly the user control.&lt;/p&gt;
&lt;p&gt;The goal is to load dynamically an user control in the asp panel, like the following :&lt;/p&gt;&lt;pre&gt;&amp;lt;%@ Page Title="Integration with WebFileUploader" Language="C#" MasterPageFile="./DefaultMasterXHTML.master"
    AutoEventWireup="true" CodeFile="IntegrationWithWebFileUploader.aspx.cs" Inherits="WebTextEditor_IntegrationWithWebFileUploader" %&amp;gt;

&amp;lt;%@ Register Assembly="ISNet.WebUI.WebTextEditor" Namespace="ISNet.WebUI.WebTextEditor"
    TagPrefix="ISWebTextEditor" %&amp;gt;
&amp;lt;%@ Register Src="WebUserControl.ascx" TagName="UcUserControl" TagPrefix="uc1" %&amp;gt;
&amp;lt;asp:Content ID="Content1" ContentPlaceHolderID="content" runat="Server"&amp;gt;

&lt;span style="font-size: 14pt"&gt;&lt;span style="font-size: 12pt"&gt;&lt;strong&gt;    &amp;lt;asp:Panel ID="pnlTest" runat="server"&amp;gt;
    &amp;lt;/asp:Panel&amp;gt;&lt;/strong&gt;

&lt;/span&gt;&lt;/span&gt;&amp;lt;/asp:Content&amp;gt;
&lt;/pre&gt;

&lt;p&gt;and by adding the following code in the code file:&lt;/p&gt;&lt;pre&gt;Control ctrl = LoadControl("WebUserControl.ascx");
pnlTest.Controls.Add(ctrl);&lt;/pre&gt;
&lt;p&gt;Unfortunately, this second solution doesn't work causes an error : "Unable to initialize file uploader".&lt;/p&gt;
&lt;p&gt;As we are working with a lot of different user controls, we can't afford to use the first solution. We MUST load our user controls dynamically.&lt;/p&gt;
&lt;p&gt;I attached the User Control I Created and the updated page "IntegrationWithWebFileUploader.aspx" for loading the user control. In order to reproduce the problem, you can just integrate these files to VS2010 Solution WebTextEditor C# Samples.&lt;/p&gt;
&lt;p&gt;Can you provide us with some help or send this case to your development team?&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Nicolas&lt;/p&gt;</description></item></channel></rss>