animation extender in datalist control in asp.net 2008

Posted by BibiBuBu on Stack Overflow See other posts from Stack Overflow or by BibiBuBu
Published on 2010-06-09T06:52:07Z Indexed on 2010/06/09 7:02 UTC
Read the original article Hit count: 627

Good Day!

i have a question that how can i use animation extender in datalist control in asp.net with c#. i want the animation when i click the delete button (delete button will be in repeater). so that when i remove one record then it shows animation to bring the next record. it is in update panel.

    <cc1:AnimationExtender ID="AnimationExtender1" runat="server" Enabled="True" TargetControlID="btnDeleteId">
        <Animations>
        <OnClick>

                      <Sequence>
                        <EnableAction Enabled="false" />
                            <Parallel Duration=".2">
                            <Resize Height="0" Width="0" Unit="px" />
                            <FadeOut />
                            </Parallel>
                            <HideAction />

                      </Sequence>
                    </OnClick>

        </Animations>
    </cc1:AnimationExtender>

now if i put my button id in the Target control id then it gives error that it should not be in same update panel etc... but over all nothing working for animation.

i am binding my datalist in itemDataBound....e.g.

    ImageButton imgbtn = (ImageButton)e.Item.FindControl("imgBtnPic");
    Label lblAvatar = (Label)e.Item.FindControl("lblAvatar");
    LinkButton lbName = (LinkButton)e.Item.FindControl("lbtnName");

Can somebody please suggest me something.

thanks

© Stack Overflow or respective owner

Related posts about .NET

Related posts about animation