Updating webpage after upload has completed

Last post 10-05-2009, 5:55 AM by ASimps. 5 replies.
Sort Posts: Previous Next
  •  10-02-2009, 10:29 AM 56041

    Updating webpage after upload has completed

    Hi,
     
    I am using the AJAXUploader and it is working beautifully. However, I want a button to become visible on the .aspx page after the upload has been completed.
     
    I have tried putting btnButton.visible = true in the Uploader_FileUploaded and Uploader1_UploadCompleted callback methods, and even though I can see that it is reaching this code (using breakpoints), the button does not become visible.
     
    Any ideas greatly appreciated!
     
    Anthony
  •  10-02-2009, 10:37 AM 56044 in reply to 56041

    Re: Updating webpage after upload has completed

    where does btnButton.Visible get set to false? is that code being run again after btnButton.Visible is being set to true? essentially negating it
  •  10-02-2009, 10:54 AM 56049 in reply to 56044

    Re: Updating webpage after upload has completed

    Hi jpchatt,
     
    I set it in the Page_Load method like:
     
            If Not IsPostBack Then
                btnButton.Visible = False
            End If
     
     
  •  10-05-2009, 12:55 AM 56094 in reply to 56049

    Re: Updating webpage after upload has completed

    Hi,
     
    Are you using MS-Ajax and the btnButton is out of the UpdatePanel ?
     
    Regards,
    Terry
     
  •  10-05-2009, 3:18 AM 56100 in reply to 56094

    Re: Updating webpage after upload has completed

    Hi Terry,
     
    Yes - that was it! Silly me...!
     
    Thank you very much,
     
    Anthony
  •  10-05-2009, 5:55 AM 56103 in reply to 56100

    Re: Updating webpage after upload has completed

    Odd thing is - now I can see the button, the user has to click the button twice before anything happens.
     
    The first click just puts focus on the button, but causes nothing to happen. A second click is required to actually cause the event handler to be called.
     
    I'm not an MS AJAX expert - anyone got any ideas what this could be about?
     
    Thanks,
     
    Anthony
View as RSS news feed in XML