Saturday, March 24, 2012

Call AnimationExtender Animation Programmatically?

Okay, here's what I am trying to do. If you know of a better way, feel free to respond.I have an UpdatePanel that contains a HyperLink and a Timer. The Timer's Tick event will update the HyperLink's Text and NavigateUrl attributes (asynchronously). This works fine.What I would like to do is fade the HyperLink text out just before updating these attributes, then fade in afterwards. I have not figured out any good way of creating an AnimationExtender to hook up to the timer's event, so I thought the best course of action would be to programmatically call the animation in the Timer's Tick event handler.Any ideas?There are some good examples at http://forums.asp.net/thread/1621611.aspx. You can follow the examples for creating the javascript to make and execute AJAX animations. One thing you might consider is having the timer's tick alternate between updating content and starting an animation. This can help with timing. Anyhow, there's several ways to kill this cat, so good luck!

Hi ,

I wrote about this here -->http://blogs.msdn.com/phaniraj/archive/2007/04/13/animations-how-many-ways-do-i-call-thee.aspx

My post describes the different ways to trigger MS Ajax AnimationExtender.


Hope this helps.

No comments:

Post a Comment