Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to change the value on the fly?
#3
(05-18-2023, 11:35 PM)Alexandre Machado Wrote: There is a way of obtaining this result but the process can't be done in a blocking request (i.e. a request that won't return until the process is finished). In this regard, even an async request is a blocking request from the server point of view.

You need to start a background thread on the server side that will handle the long process. The thread should update a progress counter that is read by the TIWMonitor that can update the page. There is an example of such thing here:

https://github.com/Atozed/IntraWeb/tree/...IWMonitor2

I'll see if I write a better example on how to deal with long processes using the IWMonitor class

Thanks Alexandre,

I have attended the sample as you suggested.
But still can't see how to apply it to my case.

I don't know if you can provide a short code example.
Or if there is an opportunity and you find it appropriate, please bring an example to apply this to my case or similar.

Initially, I would have to use LockOnAsynEvent property first.

Thank you very much
Reply


Messages In This Thread
How to change the value on the fly? - by baxing - 05-18-2023, 06:14 AM
RE: How to change the value on the fly? - by baxing - 05-19-2023, 04:39 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)