Show a loading animation while function completes
<p>I have a function inside my .aspx.cs code which takes wuite a long time to do the processing until when I want to display a cool loading animation. <br/>I looked some of the earlier posts but either these didn't work for me, or were having solution specific to Page loading scenario (not loading a while a function completes).</p>

<p>I guess the right approach would be to fire a Javascript startLoader() function just before the the main function starts (which takes a long time), and then call a stopLoader() from the .aspx.cs itself to stop the loader when the function ends. Any suggestions how to implement this?</p>
