OK, this seems like a question that should be easy to answer, but just like with a mix of asp.net and jQuery, it's a bit of a nightmare.
What I want to do is fade divin and out at different times while the client is viewing my asp.net page; I disappear using jQuery fadeTo()before starting the UpdatePanel update (to show that the data is not fresh there), and I want it to disappear again after the UpdatePanel update. I got to updating UpdatePanel in the code, and this leads to a change in the content div... but how do I blur it again div?
As I see it, there are two ways; register an event handler on the page load to determine when the content divhas changed and disappeared, or call the function from asp.net code when I updated divto bring it back.
In the first case, there is no event caused by a change in the content div, so I can not do this. If anyone knows how I can get a client event to fire upon upgrade div, this would be a good solution.
In the second case, I thought that was for this ClientScriptManager, but he does not quite do what I want. I want to be able to register a specific Javascript function with ClientScriptManager, and then report ClientScriptManagerin order to execute it on the client, from my code. You cannot do this. ClientScriptManager.RegisterClientScriptBlock()just inserts some <script>into the HTML output, rather than calling a function. Presumably this would work if I continued to log things like:
<script>fadeBackIn();</script>
Javascript , , , key ClientScriptManager.RegisterClientScriptBlock(), . , . - , ?
:
ClientScriptManager.RegisterClientScriptFunction("fadeBackIn", "function fadeBackIn(){ ... }");
[...]
ClientScriptManager.ExecuteClientScriptFunction("fadeBackIn");
.: - (