question

JohnKeulen-6468 avatar image
0 Votes"
JohnKeulen-6468 asked YijingSun-MSFT commented

ASP form update while executing OWA function

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.

dotnet-aspnet-general
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @JohnKeulen-6468 ,

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

Is the microsoft OWA you said about Outlook Web Access?
Best regards,
Yijing Sun

0 Votes 0 ·

1 Answer

AlbertKallal-4360 avatar image
0 Votes"
AlbertKallal-4360 answered AlbertKallal-4360 edited

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.



image.png (20.7 KiB)
image.png (28.9 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.