Increase page timeout from inside a web part
-
06-12-2019 - |
Question
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?
Solution
Use SPLongOperation
for this kind of stuff:
Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange