P
paul reed
Hello,
I have a composite control I have built. I capture a click event of a tree
control then raise my own event along with a custom args object for the
server-side to deal with. All the plumbing seems to work just fine. However,
I noticed, while in debug, that the CreateChildControls method gets invoked
at initial load time, as expected, but also when I click on my tree node. It
executes the CreateChildControls method again before executing my handler
logic that captures the click event.
Is there something I need to do like is done for multiple postbacks to an
aspx page (e.g., If NOT PageIsPostback) or something like that to avoid this
double execution of this method?
Thanks,
Paul
I have a composite control I have built. I capture a click event of a tree
control then raise my own event along with a custom args object for the
server-side to deal with. All the plumbing seems to work just fine. However,
I noticed, while in debug, that the CreateChildControls method gets invoked
at initial load time, as expected, but also when I click on my tree node. It
executes the CreateChildControls method again before executing my handler
logic that captures the click event.
Is there something I need to do like is done for multiple postbacks to an
aspx page (e.g., If NOT PageIsPostback) or something like that to avoid this
double execution of this method?
Thanks,
Paul