Prev: Config Transforms with Web Deployment Projects
Next: asp.net, windows 7, and a return of the BSOD
From: Cal Who on 26 Jun 2010 09:34 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
From: Cal Who on 26 Jun 2010 12:32 The type I used should have been : AnimationExtender That works OK Just needed a Imports AjaxControlToolkit " Cal Who" <CalWhoNOSPAM(a)roadrunner.com> wrote in message news:i04vkr$v1g$1(a)news.eternal-september.org... > 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 > > > >
|
Pages: 1 Prev: Config Transforms with Web Deployment Projects Next: asp.net, windows 7, and a return of the BSOD |