How to call javascript function from server side
You can just do Response.Write("<script language='javascript'>nameOfJavascriptFunction();</script>")or use ClientScriptManager.RegisterClientScriptBlockwith a similar script.
Response.Write("<script language='javascript'>nameOfJavascriptFunction();</script>")
ClientScriptManager.RegisterClientScriptBlock
The effect is that you write out a script tag that calls your function - the call is still being made on the client side.
How about the client side polling the server for actions? Make a server-side call to check for a specific state, and if that state is running, call the function? It should be easily achieved.
Source: https://habr.com/ru/post/1752964/More articles:How to continue execution after submitting the form? - javascriptHow can I make a T9 on-screen keyboard for Windows? - pythonJava recursion calling it with objects - How to copy objects? - javaHow to use F10 as a shortcut in an MFC application using tape - c ++Writing an extension method for type T; How can I add a type constraint for the T field? - c #Where do you usually keep styles in rails? - typesText before variables inside foreach loop - htmlProblems with jquery.attr () - jquerydelete table without id using jquery - jqueryShould I use the latest version of Spring - springAll Articles