ASP form update while executing OWA function

John Keulen 1 Reputation point
2021-10-07T10:58:37.693+00:00

Hi,

My company is currently developing a specific application in which Microsoft OWA functions are being used.
For example:

Dim rootfolder As Microsoft.Exchange.WebServices.Data.Folder = Microsoft.Exchange.WebServices.Data.Folder.Bind(exchservice03, fid)
For Each bericht In rootfolder.FindItems(New ItemView(max))
etc...

As soon as these functions are called, it seems impossible to update Forms/UpdatePanels until the function terminates.
JavaScript, timers, nothing seems to work. As the function are long running, some form of progress indication in essential.

Thank you for your advise and time.

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,561 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Albert Kallal 5,331 Reputation points
    2021-10-08T05:19:25.547+00:00

    What you can do is have the client side code run first, display the wait message, or icon, or even some kind of animated gif.

    So, I might have this button click:

    138710-image.png

    So, when I click the above button, the code behind will run, but ALSO the client side code to display the gif. So when I click the button, you will see this:

    138736-image.png

    it is a animated gif.

    and I don't even have to turn it off when done, since the button does a post-back, and when the screen re-plots, the hidden gif + div will go away all on its own.

    So, you you need to set/change the display client side, since when you click the button, the web page doe travel up to the server - and REMAINS there until the code behind is done. When code is done, ,then the whole page travels back down to the client side - replots and re-displays in the browser.

    So, you need to start a display or whatever (even text box with please wait....) client side.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.