I have a long process on the server side (it receives data through the web service in packages as part of the do / while loop). On each pass through the loop, I want to send a status message back to the label control in the update panel on the client.
I tried to assign a value to the label in the code behind, and then use a timer to update the update panel every minute. But that does not work.
Any ideas or suggestions?
TIA
jQuery.get , , , . . , , ( ) ... , . , http ... !
. /. LongRunningTask, ((LongRunningTask)Cache["MyLongRunningTask"]).TaskStatus - ( - =))
((LongRunningTask)Cache["MyLongRunningTask"]).TaskStatus
.
. Response.Write , . I.E.: 234
answer.write Response.Flush. .
Write Flush a
<script> /* jquery to update an element on the client page */ </script>
. , , , (, 1000 ). . , script , , , (,.... 10 ), .
Source: https://habr.com/ru/post/1713707/More articles:How to implement the spectrum core function in MATLAB? - matlabWhat happens when you run out of ram with mlockall set? - c ++Выполнение текущего Python script в Emacs в Windows - pythonIs there a tutorial for embedding messages in MSMQ 3.0 using PHP over HTTP? - httpASP.NET DropDownValue not saved on single server in webfarm - c #Play indefinitely on iPhone - iphoneHow to prevent coclass implementations from being used in the ATL type library - comHow to RegEx Replace Named Groups - regexWhat are the disadvantages of creating business applications in silverlight, unlike html - silverlightHow to create self-maven source distribution maven? - maven-2All Articles