I want a AnimationExtender to run only once but this code produces a complier error

C

Cal Who

This works OK:

<ajaxToolkit:AnimationExtender ID="AnimationExtender1" runat="server"
TargetControlID="TableTopQQ">

But if the user returns to this page I don't want the animation to run a
second time.

So in the Load event I placed:

CType(FindControlRecursive(Me, "AnimationExtender1"),
System.Web.UI.Control).Enabled = False

This got me a "not a member" error so I changed to Visible and ran debug
with a break point.

Looking at:

FindControlRecursive(Me, "AnimationExtender1")

I see that it does find the element and it has an "Enabled" attribute.

And the type is: System.Web.UI.Control



How can I fix this?





Thanks
 
C

Cal Who

The type I used should have been : AnimationExtender
That works OK
Just needed a
Imports AjaxControlToolkit
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,575
Members
45,053
Latest member
billing-software

Latest Threads

Top