Unable to See "Select File" dialog box

Last post 12-22-2008, 11:13 PM by cutechat. 15 replies.
Sort Posts: Previous Next
  •  12-04-2008, 1:42 AM 46549

    Unable to See "Select File" dialog box

    Hi,
     
    I have downloaded the latest AJAX Uploader and am trying to test the 2.0 Framework examples (started with NoAjax examples)
    This is on Windows XP with IIS 5.1. The examples work fine (basically create a virtual directory to the appropriate path , set ASP.NET to version 2.0 and browse to the appropriate path).
     
    However when i try out the examples (multiple-files-upload.aspx) into our existing ASP.NET application, i am not able to see the "File Select Dialog" box. the "Upload File" button is "grayed out" (i.e. not clickable anymore)
     
    I have copied the sample multiple-files-upload.aspx to our Application/Secure folder . The Secure folders files need a login to be accessed.
     
    Here's what i did
    a) Copied the dll and license file to bin directory, modify web.config accordingly
    b) copied multiple-files-upload.aspx to our Secure directory
    c) tried to do : http://localhost/My35/Secure/multiple-files-upload.aspx (enter appropriate login and control is redirected to ajax uploaded sample page)
    d) on the sample page, click on Upload File. Cannot see the "Select File" Dialog box. Nothing happens, the "Upload File" button is "grayed out" (i.e. not clickable anymore)
     
    e) Tried using IE7, FireFox 3.0.4, Safari 3.2.1
     
    Thanks and Appreciate any help


    Here's the web.config file i am using. 
     
    -------------------
    <configuration>
        <system.web>
            <!-- set debugmode to false for running application -->
            <compilation debug="true" />
            <trace enabled='false' localOnly='true' pageOutput='true' requestLimit='20' traceMode='SortByTime'/>
            <customErrors mode='RemoteOnly' defaultRedirect='Public/Error.aspx'>
                <error statusCode="404"
                    redirect="Default.aspx"/>
            </customErrors>
            <authorization>
              <allow users ="*" />
            </authorization>
            <authentication mode="Forms">
              <forms loginUrl="Secure/Login.aspx" timeout="100"/>
            </authentication>
            <sessionState mode='InProc' timeout='29' />
            <browserCaps>
                 tagwriter=System.Web.UI.HtmlTextWriter
            </browserCaps>
        <pages>
          <controls>
            <add namespace="CuteWebUI" assembly="CuteWebUI.AjaxUploader" tagPrefix="CuteWebUI"/>
          </controls>
        </pages>
        <httpModules>
          <!-- UploadModule is optional , for the property Uploader.ShowProgress -->
          <add name="CuteWebUI.UploadModule" type="CuteWebUI.UploadModule,CuteWebUI.AjaxUploader"/>
        </httpModules>
          </system.web>
          
          <location path="Secure">
            <system.web>
              <authorization>
                <deny users="?" />
              </authorization>
            </system.web>
          </location>
          
          <appSettings>
            <add key="DataPath" value="C:"SSNet35"Data" />
            <add key="BasePath" value="C:"SSNet35" />
            <add key="URLbase" value="/My35/" />
            <add key="URLauthority" value="localhost" />
        <add key="cnStr" value="Integrated Security= SSPI;Initial Catalog=SchoolSpeak;Data Source=(local)"SQLEXPRESS"/>
            <!-- add key="URLbase" value="/SS/" / -->
            <add key="SMTPserver" value="localhost" />
            <add key="DictionaryFolder" value="bin" />
          </appSettings>
    </configuration>
    --------------------------------------

     
  •  12-04-2008, 10:47 AM 46575 in reply to 46549

    Re: Unable to See "Select File" dialog box

    1. Does multiple-files-upload.aspx example work in your localhost?
     
    2. Are you using IIS 7.0 Integrated mode?
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  12-04-2008, 11:16 AM 46579 in reply to 46575

    Re: Unable to See "Select File" dialog box

    Yes the example works fine as is
    I am using IIS 5.1 on Windows XP (i think it's in classic mode)
    Thanks
  •  12-04-2008, 11:28 AM 46580 in reply to 46579

    Re: Unable to See "Select File" dialog box

    Can you try the following code?
     
    <%@ Page language="c#"%>
    <%@ Register Namespace="CuteWebUI" Assembly="CuteWebUI.AjaxUploader" TagPrefix="CuteWebUI" %>
    <html>
    <head>
    </head>
    <body>
        <form id="Form1" method="post" runat="server">
     <CuteWebUI:Uploader runat="server" ID="Uploader1" UploadType="iframe">
     </CuteWebUI:Uploader> 
        </form>
    </body>
    </html>
     
    Keep me posted

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  12-04-2008, 12:44 PM 46589 in reply to 46580

    Re: Unable to See "Select File" dialog box

    Adam,
     
    Thanks for responding
    .
    I can see the "Select File" box now, but the only thing is it happens on the second click to the button. (Same behaviour in IE7, Firefox 3.0.4, Safari 3.2.1)
    When i click on the first time, I can see that some processing is going on (like an icon appears in the Icon tray bar and disappears very fast, but no "Select File" box). When i click on the button again, the file select box comes, and upload goes through fine.
    I will try to look at the documentation for UploadType set to Iframe. 
    If you can think of anything else, please let me know
     
    Thanks
  •  12-04-2008, 2:12 PM 46594 in reply to 46589

    Re: Unable to See "Select File" dialog box

    Is that possible for you to put on an online demo so we can test it?

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  12-04-2008, 2:58 PM 46595 in reply to 46594

    Re: Unable to See "Select File" dialog box

    Adam,
     
    Thanks for replying.
     
    Here's the demowebsite
     
    http://schoolspeak.dyndns.org:10003/Secure/multiple-files-upload.aspx?Community=11111001
     
    This is on a windows 2003 server machine with IIS 6.0
     
    username/password : guest123/guest123
     
    I have set UploadType="iframe". The file dialog box comes on the second click,but i can choose only one file at a time
     
    Here's the sample aspx (it's the same as the example under Framework 2.0-Csharp-NoAjax with a minor modification)
     
    Thanks so much for helping us!!

     
    multiple-files-upload.aspx
    ====================
     
    <%@ Page Language="C#" %>

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <script runat="server">
     void InsertMsg(string msg)
            {          
                ListBoxEvents.Items.Insert(0, msg);
                ListBoxEvents.SelectedIndex = 0;
            }

            protected override void OnInit(EventArgs e)
            {
                base.OnInit(e);
                //SampleUtil.SetPageCache();
                Attachments1.AttachmentAdded += new AttachmentItemEventHandler(Attachments1_AttachmentAdded);
                ButtonDeleteAll.Click += new EventHandler(ButtonDeleteAll_Click);
                ButtonTellme.Click += new EventHandler(ButtonTellme_Click);
            }
            
            void Attachments1_AttachmentAdded(object sender, AttachmentItemEventArgs args)
            {
                InsertMsg(args.Item.FileName + " has been uploaded.");
            }

            void ButtonDeleteAll_Click(object sender, EventArgs e)
            {
                InsertMsg("Attachments1.DeleteAllAttachments();");
                Attachments1.DeleteAllAttachments();
            }
            void ButtonTellme_Click(object sender, EventArgs e)
            {
                ListBoxEvents.Items.Clear();
                foreach (AttachmentItem item in Attachments1.Items)
                {
                    InsertMsg(item.FileName + ", " + item.FileSize + " bytes.");
                    //Copies the uploaded file to a new location.
                    //item.CopyTo("c:""temp"""+item.FileName);
                    //You can also open the uploaded file's data stream.
                    //System.IO.Stream data = item.OpenStream();
                }
            }
    </script>

    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head runat="server">
        <title>Uploading multiple files like GMail</title>
          <link rel="stylesheet" href="demo.css" type="text/css" />
    </head>
    <body>
        <form id="form1" runat="server">
     
                    <div class="content">
                                      
                          <h2>Uploading multiple files like GMail</h2>
        <p> Google's GMail has a nice way of allowing you to upload multiple files. Rather than showing you 10 file upload boxes at once, the user attaches a file, you can click a button to add another attachment. </p>
        <br />                    
        <CuteWebUI:UploadAttachments InsertText="Upload Multiple files Now" UploadType="iframe" runat="server" ID="Attachments1">
            <INSERTBUTTONSTYLE/>
        </CuteWebUI:UploadAttachments>
        <br /><br />    
        <asp:Button ID="ButtonDeleteAll" runat="server" Text="Delete All" />&nbsp;&nbsp;
        <asp:Button ID="ButtonTellme" runat="server" Text="Show Uploaded File Information" />
        <br /><br />
        <div>
            Server Trace:
            <br />
            <asp:ListBox runat="server" ID="ListBoxEvents" Width="400"></asp:ListBox>
        </div>                 
                        
                    </div>
           
        </form>
    </body>
    </html>

  •  12-08-2008, 5:46 PM 46666 in reply to 46549

    Re: Unable to See "Select File" dialog box

    Adam,
     
    Just wondering if you had a chance to duplicate this error and look at the test website i gave you.
    Appreciate your help
    Thanks
  •  12-13-2008, 10:17 AM 46898 in reply to 46549

    Re: Unable to See "Select File" dialog box

    Hi,
     
    Can you download the last version and try again?
     
    It would be great if you can put a sample page to your website and send me for test .
     
    terry @ cutesoft.net
     
    Regards,
    Terry.
  •  12-15-2008, 1:26 PM 46941 in reply to 46898

    Re: Unable to See "Select File" dialog box

    Terry,
     
    I tried the latest version, but the problem is still there.
    I have emailed you the details to my test site.
     
    Thanks

  •  12-16-2008, 9:47 AM 46969 in reply to 46941

    Re: Unable to See "Select File" dialog box

    Hi,
     
    About two months ago i've purchased the ajaxfileuploader.
    Untill now everything worked just fine, but since today nothing seems to work anymore.
    As soon as i hit the insertbutton nothing happens (i should be seeing the select file dialogbox).
    Yesterdag everything was working great.
     
    I've tried it with the samplesites but even there, nothing is working anymore.
     
    Is there anything I could do to resolve this problem. None of my users can upload any file at this moment.
  •  12-16-2008, 9:53 AM 46970 in reply to 46969

    Re: Unable to See "Select File" dialog box

    Strange,
     
    I've just tested it using IE6.0 and it works. In IE7 it doesn't. Haven't tested firefox yet.
  •  12-18-2008, 9:11 AM 47085 in reply to 46969

    Re: Unable to See "Select File" dialog box

     
    When you get problem , you can try set the property :
     
    UploadType="IFrame" , that would always works.
     
    Regards,
    Terry
  •  12-18-2008, 9:11 AM 47086 in reply to 46941

    Re: Unable to See "Select File" dialog box

    Hi,
     
    Have you send me mails? I haven't recieved it.
     
    Regards,
    Terry
  •  12-22-2008, 3:24 PM 47179 in reply to 47086

    Re: Unable to See "Select File" dialog box

    Terry,
     
    Yes i sent u the mail  on 12/15/08
    I have sent it again today.
    You can find the demo site details in my earlier posts
     
    Thanks
  •  12-22-2008, 11:13 PM 47192 in reply to 47179

    Re: Unable to See "Select File" dialog box

    Thanuja,
     
    Your website demo now is using IFrame mode. We are not able to test it.
     
    But we have upload a new version for your issue.
     
    Please download it and try again.
     
    Regards,
    Terry
View as RSS news feed in XML