A
A
Alexeytur2018-08-24 08:04:57
ASP.NET
Alexeytur, 2018-08-24 08:04:57

ASP - execute javascript code after asp:Button onClick handler?

Good afternoon.
There is an asp:Button button, a js-animation is launched in the onClientClick event, a file is generated in the onClick event on the server. Is there any way to detect the end of the onClick event on the client to stop the animation?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Kovalsky, 2018-08-24
@dmitryKovalskiy

At first glance, no, due to the specifics of the WebForms life cycle.
If you think about it a little - the onclick event is called via Ajax? Then stop whatever you want on the onSuccess client event.
If the event is called synchronously - then what's the problem? the page should reload.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question