Re: Bought the license and now it does not work.

  •  04-09-2013, 4:14 PM

    Re: Bought the license and now it does not work.

    Hi Ken,

     

    The demo page does indeed work in IE9.  I do see a difference between my code and yours that I can't explain;  perhaps you can shed some light.

     

    Here is what IE's Developer Tools is showing as the onload attribute for the <img> tag that gets rendered in your demo page version of AjaxUploader:

     

    onload="this.style.display="none" ; if(!window.CuteWebUI_AjaxUploader_Initialize){var xh=window.XMLHttpRequest?new XMLHttpRequest():new ActiveXObject('Microsoft.XMLHttp');xh.open('GET','/CuteWebUI_Uploader_Resource.axd?type=script&_ver=634982217233730498',false);xh.send('');eval(xh.responseText)}CuteWebUI_AjaxUploader_Initialize(this.id);"

     

    And here is what Developer Tools is showing as the onload attribute on my page:

     

    onload="this.style.display=&quot;none&quot; ; if(!window.CuteWebUI_AjaxUploader_Initialize){var xh=window.XMLHttpRequest?new XMLHttpRequest():new ActiveXObject(&#39;Microsoft.XMLHttp&#39;);xh.open(&#39;GET&#39;,&#39;/CuteWebUI.AjaxUploader.ashx?type=script&amp;_ver=635007824293053823&#39;,false);xh.send(&#39;&#39;);eval(xh.responseText)}CuteWebUI_AjaxUploader_Initialize(this.id);"

     

    Here is my code:

     

    <asp:UpdatePanel runat="server" id="UpdatePanel1" >

           <ContentTemplate>

                <uc1:UploadableFile runat="server" ID="ufAvatar" UploadArea="Avatars" ClientOnFileUploaded="uiAvatar_FileUploaded" UploadButtonText="Upload..." />

                <div style="padding-left: 3px; padding-top: 4px">

                      <asp:Label runat="server" ID="lblUploadedFileName"></asp:Label>

                </div>

          </ContentTemplate>

    </asp:UpdatePanel>

     

    UploadableFile is a user control that contains the Uploader control:

     

    <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UploadableFile.ascx.cs" Inherits="InsideConnector.UploadableFile" %>

    <%@ Register TagPrefix="CuteWebUI" Namespace="CuteWebUI" Assembly="CuteWebUI.AjaxUploader" %>

    <CuteWebUI:Uploader id="Uploader1" runat="server" OnFileUploaded="Uploader1_FileUploaded" InsertButtonID="btnUpload" OnPreRender="Uploader1_PreRender" >

          <CancelButtonStyle />

          <InsertButtonStyle />

          <ProgressLabelStyle />

          <ValidateOption />

    </CuteWebUI:Uploader>

    <asp:Button runat="server" ID="btnUpload" />

    <asp:Label runat="server" ID="lblErrorMessage"></asp:Label>

     

     

    Perhaps the UpdatePanel is contributing to the issue?

     

    Thanks,

    Mitch 


View Complete Thread