Thanks for the pointer, Natty Guru.
I think I accidentally bypassed the problem by implementing the dynamically
added controls as custom composite controls. That way all the functionality
is baked into the composite control's inner controls (e.g., the button
control in the MyCustomCompositeControl control). I had to implement custom
composites for other reason, of course, not just to get around this problem.
- Assaf
"Natty Gur" <na***@dao2com.com> wrote in message
news:%2******************@TK2MSFTNGP12.phx.gbl...
Assaf hi,
You need to attach methods on your page to controls events. if you using
C# :
MyControl.Click += new EventHandler(FunctionNameWithDelegartionSign(;
VB:
AddHandlerMyControl.Click , AddressOf FunctionNameWithDelegartionSign
BUT! Event handler for dynamic control should be added before the page
finish to build controls. in the page life cycle the Load event is the
one that you can use.
Natty Gur[MVP]
blog : http://weblogs.asp.net/ngur
Mobile: +972-(0)58-888377
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!