1

We have a webpart that allows users to upload videos to YouTube. In testing, we were able to exceed the script timeout. I believe the default is 120 seconds.

Can this setting be changed / accommodated inside the web part, or can this only be changed in the web.config?

1 Answer 1

3

Use SPLongOperation for this kind of stuff:

http://nikspatel.wordpress.com/2011/04/27/use-splongoperation-to-display-sharepoint-processing-page-for-lengthy-operations/

3
  • Yes, thanks, I've seen that technique mentioned. Unfortunately this is for a branding site - and I doubt the client would be happy with that dialog. Can the dialog be changed?
    – ScottE
    Commented Jan 19, 2012 at 16:20
  • This looks a little more fine-grained ruudheemskerk.net/archive/2009/11/24/…
    – ScottE
    Commented Jan 19, 2012 at 16:24
  • Yep, that's how you would have to the change the dialog, by inheriting that class.
    – James Love
    Commented Jan 19, 2012 at 18:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.