Hi Bill,
Thanks for the response. Actually I want to handle the event from the
control.
During that process I validate the user entered values, after that I
want to render the changes to the page.(That is calling the
CreateChildControls method).
But, right now the CreateChildControls method gets fired before the
OnClick event so I am not able to force the CreateChildControls
method after the onClick event.
Is there anyway I can force the CreateChildControls method call after
the onClick event.
Thanks for your help. Really appreciate that.
-Sam
"William F. Robertson, Jr." <wf*********@kpmg.com> wrote in message news:<OI**************@TK2MSFTNGP12.phx.gbl>...
The CreateChildControls method must be called before the child's event is
"called", otherwise there will be no control to raise the event
notification.
Are you wanting to bubble the event up to the consumer?
Are you just wanted to handle the event from the control only?
bill
"Arulraja" <ar**********@hotmail.com> wrote in message
news:d2**************************@posting.google.c om... Hello,
I have created 2 custom server controls, The parent custom control
contains multiple child custom controls. The Child control has a
button on it.
If I Click the button control, it calls the Parent controls
CreateChildControls() method before calling the child control's button
click event.
Because of this behaviour, I am not getting the changes I made in the
child controls button click event.
I think I am doing something wrong with the event handling?
Can somebody point to the right way of ahndling the child controls
Events?
Thanks
Sam