In .Net 1.1 Your Demo seems do not work during a PostBack

Last post 10-06-2008, 8:35 PM by cutechat. 7 replies.
Sort Posts: Previous Next
  •  10-06-2008, 6:32 AM 44612

    In .Net 1.1 Your Demo seems do not work during a PostBack

    Hello,
     
    I've download your demo and I run it on .Net 1.1 environment

    I choose the multiple file (Google like) (http://localhost/Demo/multiple-files-upload.aspx)

    I upload 2 files (WORK VERY WELL).

    When I wanted to remove 1 file (MAKE A POSTBACK).

    And all my other Upload is cleared


    I'm interested to your product, but this problem made your product not usable.
     
    Is your product still compatible to .Net 1.1 ?
    Filed under:
  •  10-06-2008, 7:02 AM 44614 in reply to 44612

    Re: In .Net 1.1 Your Demo seems do not work during a PostBack

    >>Is your product still compatible to .Net 1.1 ?
     
    Yes. Ajax Uploader supports ASP.NET 1.1.
     
    >>When I wanted to remove 1 file (MAKE A POSTBACK). And all my other Upload is cleared
     
    I checked this example which works perfectly here.
     
    Can you tell me how you did a postback? Click a button of the page or just press F5?

    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

  •  10-06-2008, 7:51 AM 44618 in reply to 44614

    Re: In .Net 1.1 Your Demo seems do not work during a PostBack

    I've Just click on the remove link (in the G-mail sample) after several document was upload.
     
    And then IHM is reset, lost all other upload document in your Control.
     
    I've trying this sample on 2 computers (dev and server) and i still have the same problem. 
     
    I've used the web application in the folder :  Framework 1.x-Csharp
     
    I do not change any line of your sample and web.config.

  •  10-06-2008, 8:27 AM 44621 in reply to 44618

    Re: In .Net 1.1 Your Demo seems do not work during a PostBack

    Do you have the same problems with the following example?
     
    5. Uploading multiple files like GMail
    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.
     
    Which browser are you using?

    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

  •  10-06-2008, 8:50 AM 44623 in reply to 44621

    Re: In .Net 1.1 Your Demo seems do not work during a PostBack

    i'm using IE 6.0 and FireFox 2.0, same behaviour on both browser.
     
    It's this sample that i use.
     
    - I choose 2 files.
     
    - I wait after upload complete.
     
    - After remove a file (postback) and the both file disapairs.
     
    And also test the sample number 7 (7. Persist Uploaded File through Postback )
     
    - I upload a file OK (the filename is written near the upload button)
     
    - I click on the postback button and the filename is cleared.
     
    That for this reason, that a have post this message,
     
    After any postback, the control render is reset like when i started your sample. 
     
    How is your web.config with your NET 1.1 configuration ?
     

  •  10-06-2008, 9:38 AM 44624 in reply to 44623

    Re: In .Net 1.1 Your Demo seems do not work during a PostBack

    I tried the 1.1 examples and it work perfectly here. I checked the 1.1 web.config files. They are correct.
     
    I think we may have misunderstanding.
     
    After unloading the controls to users, you need to use.CopyTo to process the uploaded files. Otherwise uploader will remove the temp files. In the default examples, this method is commented out.
     

        void Uploader_FileUploaded(object sender, UploaderEventArgs args)
        {
            Uploader uploader = (Uploader)sender;
            InsertMsg("File uploaded! " + args.FileName + ", " + args.FileSize + " bytes.");

            //Copys the uploaded file to a new location.
            //args.CopyTo(path);

            //Opens the uploaded file's data stream.
            //System.IO.Stream data = args.OpenStream();
        }


    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

  •  10-06-2008, 9:45 AM 44627 in reply to 44624

    Re: In .Net 1.1 Your Demo seems do not work during a PostBack

    Thank for your help.
     
    That should be my iis environment (we use some ISAPI Filter).
     
  •  10-06-2008, 8:35 PM 44640 in reply to 44627

    Re: In .Net 1.1 Your Demo seems do not work during a PostBack

    Hi,
     
    For the UploadPersistedFile and the UploadAttachments , they will persist the files for only 1 hour.
     
    If one hour have passed , the temporary files would be deleted.
     
     
    Another condition is that the temporary files be deleted at server by unknown reasons .
     
     
    Whatever reason the files be deleted , the controls would remove it from the list.
     
    ----
     
    Please check the source code of the advanced samples ,
     
    It should how to use the UploadPersistedFile and UploadAttachments in a real scene.
     
     
    Regards , Terry .
View as RSS news feed in XML