Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

ASP.net UploadProgress

Options
  • 01-05-2009 10:57am
    #1
    Registered Users Posts: 2,791 ✭✭✭


    Hi,

    I have successfully implemented the UpdateProgress control in my web application so that it automatically appears when there's a postback.

    However, there's a piece of functionality that requires a file to be processed by a third party application which is not a postback (i.e a file is placed in a folder and the system waits for it to be processed rather than processing it itself). This usually takes several seconds to be handled, so a custom progress control has been implemented using polling ,which displays feedback to the user while it checks on the status of the file. When the file is processed, the feedback is longer displayed and the results are rendered to the user.

    This conflicts with the standard asp.net UpdateProgress control so I have set its visibility to false in the polling method, and when the polling is complete I switch it back on again.

    My problem is that once the UpdateProgress control has its visibility set to false, even when it's turned back on again, it will not display. I've checked the visibility property value in the OnPreRender stage and it's correctly set to true. The only way of resolving this is to reload the page and given that we're using UpdatePanels, that's not going to happen very often for the user.

    Would appreciate any suggestions as I've had this issue assigned to me for weeks and I'd love to get it fixed!


Comments

  • Moderators, Society & Culture Moderators Posts: 9,689 Mod ✭✭✭✭stevenmu


    I *think* if you explicitly call the Update() method on the updatepanel in your code (as opposed to just allowing the auto-update do it) it allows this


  • Registered Users Posts: 2,791 ✭✭✭John_Mc


    stevenmu wrote: »
    I *think* if you explicitly call the Update() method on the updatepanel in your code (as opposed to just allowing the auto-update do it) it allows this

    Hi Steve,

    Thanks for your reply :)

    I tried doing that but I get the following error:
    The Update method can only be called on UpdatePanel with ID 'upGridResult' when UpdateMode is set to Conditional.
    

    I'd rather not have to explicitly update the panel in every scenario it's used extensively throughout the application. Is there any way around this?


  • Registered Users Posts: 2,894 ✭✭✭TinCool


    Can you not set the updatemode to conditional programatically before you call the update method whilst the file is being processed and then set it back to auto or whatever it is ?


  • Registered Users Posts: 2,791 ✭✭✭John_Mc


    TinCool wrote: »
    Can you not set the updatemode to conditional programatically before you call the update method whilst the file is being processed and then set it back to auto or whatever it is ?

    That sounds like it could work! Will try and post back here how I get on, thanks.


  • Registered Users Posts: 2,791 ✭✭✭John_Mc


    I was able to run Update() on the UpdatePanel but it made no difference.

    Any other ideas?


  • Advertisement
Advertisement