Ajax Uploader in a asp.net wizard control

Last post 08-26-2009, 10:44 AM by lancec. 7 replies.
Sort Posts: Previous Next
  •  08-09-2009, 12:56 PM 54589

    Ajax Uploader in a asp.net wizard control

    I am really interested in the ajax uploader control that you have.  I have downloaded your samples and edited one of the samples and put the updatepanel control from your sample on one of the wizard steps and then have another set of normal asp.net controls on step 2 of the wizard.  I noticed that if I click the Previous button or the back button on the browser after going to Step 2 of the wizard, all of the files that I uploaded are gone and it looks like I came to that wizard step to upload photos for the first time. That is a problem for me.
     
    In my real website where I want to use this, I have about a 10 step wizard control where users provide various pieces of information.  On one wizard step, they can upload photos.  The way I currently have my website (withotu using your control), I'm not using any update panels on the wizard page and when they select photos in each of the standard asp.net file upload controls and click "Next" it uploads them using standard file upload procedures on the server side.

    Once uploaded, if a user clicks the "Previous" wizard button, it shows them the thumbnail of the photo that was uploaded in place of the file upload control.  So, if I have 10 file upload controls on the page and they upload 5 photos, there will be five thumbnails and 5 input controls.  They can remove the photos which deletes the photo and replaces that particular thumbnail with a file upload controlon the page.  I'm storing the path to the temp folder where I've uploaded the photo in viewstate.  This all works fine, but I want the functionalitiy of your Ajax Uploader control so that users have a progress bar and can tell how much longer they need to wait. 
     
    I would like to use your control in place of how I'm currently doing it.  So, they can only upload 10 photos total and after that it won't allow them to upload more.  Once uploaded, I'm fine with using your attachment control that shows the name of the file, bytes, and has a Remove link, but is there a way to replace the paper clip icon and the checkbox with a thumbnail of the image uploaded?  That way they can tell what they uploaded and choose whether or not to remove it.The problem is that if the user clicks either the Back button in their browser or clicks the "Previous" button in the Wizard control, the list of files that they have uploaded is gone and it makes it look like nothing has been uploaded. 
     
    How can I do the following:
    --Use this control in a wizard control and have it maintain the attachment list that has a thumbnail of the image as opposed to the paperclip and checkbox when a user clicks the back button in their browser or the "Previous" button in the wizard control
    --Limit the Uploader control so that it will only let the user upload 10 photos total for that particular wizard session.  Meaning, if they upload photos, click the Next button in the wizard, then go back to the previous page, if they have 10 photos uploaded, they can't upload anymore AND it will show them the list of files they already uploaded.I hope that makes sense as to what I'm trying to accomplish. 
     
    As I mentioned, I'm very interested in purchasing this control, but I need to make sure that it will meet my need based on the scenario above.Thanks!
     

     

     

     
     
     

     
  •  08-09-2009, 9:28 PM 54590 in reply to 54589

    Re: Ajax Uploader in a asp.net wizard control

    Hi,
     
    Do you use JavaScript?
     
    I suggest you use JavaScript + MvcUploader class to implement your request.
     
    If you say YES , I will tell you the details.
     
    --
     
    And I suggest you create an ID for the wizard , and save each state into database ,
     
    So when user navigate to every page , the state could be load again.
     
    Regards,
    Terry
     
  •  08-10-2009, 9:59 AM 54609 in reply to 54590

    Re: Ajax Uploader in a asp.net wizard control

    I'm not currently, but I'm open to suggestions so I'd like to see your details if you wouldn't mind posting how to implement what you are suggesting.
     
    Thanks!
  •  08-11-2009, 3:05 PM 54634 in reply to 54609

    Re: Ajax Uploader in a asp.net wizard control

    Do you happen to have those javascript notes about how to accomplish what I need to do within my wizard control?  Thanks!
  •  08-12-2009, 11:14 AM 54655 in reply to 54634

    Re: Ajax Uploader in a asp.net wizard control

    Hi,
     
    It's not easy to descript all the details.
     
    I will make a sample for you as soon as possible.
     
    Regards,
    Terry
     
  •  08-24-2009, 10:16 AM 54971 in reply to 54655

    Re: Ajax Uploader in a asp.net wizard control

    Any updates on that sample?  I'm really interested in the product, but need to understand how to make it work in a wizard control.
     
    Thanks!
    Lance
  •  08-25-2009, 9:42 AM 55019 in reply to 54971

    Re: Ajax Uploader in a asp.net wizard control

    Lance ,
     
    Please download the last code, and find the AdvancedCS20-Wizard folder.
     
    You may need copy the bin directory from other samples.
     
    Regards,
    Terry
  •  08-26-2009, 10:44 AM 55071 in reply to 55019

    Re: Ajax Uploader in a asp.net wizard control

    Thank you very much very taking the time to do that.  I haven't had a chance to fully digest what you did since it is very different than the built in asp.net wizard control, but it is an interesting approach that appears to solve the problem.    I'll keep looking through it and try to determine the best way to implement it in my project.  Thanks again!
View as RSS news feed in XML