From: Sean M. <sea...@ho...> - 2006-03-17 21:15:38
|
Odd. I downloaded the src yesterday and those files are not included? Anyway heres a example you can run: http://forums.anthemdotnet.com/forums/viewtopic.php?p=359#359 Thanks Sean _____ From: Manu Temmerman-Uyttenbroeck [mailto:man...@gm...] Sent: Friday, March 17, 2006 2:31 PM To: Sean McCarthy Cc: ant...@li... Subject: Re: [Anthem.NET-users] Placeholder Adding control with ajax widgets There is an example in the examples directory of anthem called: DynamicAnthemControls.aspx and DynamicUserControls.aspx. Could those 2 help you out? Could you maybe give a little bit more code? On 3/17/06, Sean McCarthy <sea...@ho...> wrote: Hi, I have a page that adds a control (many anthem widgets) to a placeholder on the page when a button is clicked. The ajax events don't run if I load the control and add it to the place holder in the button event. If I do the same action in the page load it works properly. Does anyone know why or how to workaround this? I have also tried creating the control in the placeholder on page load and then setting it invisible and then making it visible when the button event fires. This didn't work either. Heres my logic: //if I do this in the page load works fine..if I do the same in button event the ajax widgets fail to update loadTheControl(); addTheControlToThePlaceHolder(); setTheNameOfTheControl(); Im new to anthem / ajax so if you could point me in the right direction it would appreciated. Thanks in advance Sean |