AnimationExtender help

Last post 03-01-2007 8:23 AM by SirSceptre. 4 replies.

Sort Posts:

  • AnimationExtender help

    12-05-2006, 9:44 AM
    • Loading...
    • SirSceptre
    • Joined on 11-30-2006, 5:16 PM
    • Posts 7

    I am trying to have an animation occur only after a form has been validated.  My AnimationExtender TargetControlID is my button that submits my form.  When that button is clicked, I want the form to validate, which it does because of my validator controls that are in place.  However, the animation always takes affect even when the page is not valid.  I do some server side validation so I need the postback to occur and then the animation in that order.  I have tried setting the Animations property of my AnimationExtender control on page load when it is a postback and when the page has been validated but that doesn't seem to work.  Is there sonething I can put in the condition section that will check my validation controls?

     Thanks in advance!

  • Re: AnimationExtender help

    02-27-2007, 10:37 AM
    • Loading...
    • andymarks
    • Joined on 05-22-2006, 2:32 PM
    • England
    • Posts 81

    I also have this problem.

    I have two fields both with required field validators attached to them and a button.  The button has an animationExtender attached to it to fade it out when clicked. 

    The problem is that the button is always fading even when the validaros fire (can see the red astersisks on them).

    Has anyone any idea how to get round this?

    Andy.

     

  • Re: AnimationExtender help

    02-27-2007, 11:00 AM
    • Loading...
    • SirSceptre
    • Joined on 11-30-2006, 5:16 PM
    • Posts 7
    All I ended up doing was just having the animation extender disabled by default.  I validate the page on the server side and if the page is valid, then I will enable the animationextender object.
  • Re: AnimationExtender help

    03-01-2007, 1:53 AM
    • Loading...
    • Phanatic
    • Joined on 10-07-2005, 3:48 AM
    • Redmond , WA
    • Posts 393

    Hi,

    If you want to trigger animation effects based upon a particular condition , then the Case Animation is what you need to look at.

    http://ajax.asp.net/ajaxtoolkit/Walkthrough/AnimationReference.aspx#ConditionAnimation

    Hope this helps

    Phanatic
    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: AnimationExtender help

    03-01-2007, 8:23 AM
    • Loading...
    • SirSceptre
    • Joined on 11-30-2006, 5:16 PM
    • Posts 7
    The condition animation works when the condition is on the client side.  What if you want to easily test a condition on the server side?  Condition animation doesn't allow for that.  That is why I suggest to just set the enable property of your animation extender control when the server side condition is met.
Page 1 of 1 (5 items)
Microsoft Communities
Page view counter