In my application, I have a FormView which allows Insert’s and Update’s. I want to show a message which dissappears after about 2-3 seconds whenever they insert or update. I figured the AnimationExtender from the AjaxControlToolkit would be the best way of doing this, but I can’t figure out how to get that animation to fire when a FormView is updated/inserted. Any ideas?
Share
Have you tried calling the animation in the ItemInserted or ItemUpdated events for the
FormView? That sounds like it would do the trick for you. They fire every time an Update or Insert occurs from that control.Alternately, you could just set the
TargetControlIDof yourAnimationExntenderto the id of your Update / Insert button (the one’s on yourFormViewwithCommandNameset to “Insert” or “Update”), then just specify your desired animation in theOnClickevent:Note that this technique requires you to have two
AnimationExtenders, one for the Delete button and one for the Update button.