471,853 Members | 1,792 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,853 software developers and data experts.

What does EnsureChildControls really Ensure?

EnsureChildControls makes sure CreateChildControls() is called

So then the children are "created"

What does "created" actually mean? Is only Constructor() call?
OnInit()? OnLoad()? ...?

Guessing EnsureChildControls() is recursive. Are the grandchildren
"created" to?
Nov 18 '05 #1
1 3284
Created means at least created and added to the parent's Controls
collection.

EnsureChildControls isn't recursive at all. Its little more than this:

if (!ChildControlsCreated)
{
CreateChildControls();
ChildControlsCreated = true;
}

Whether or when grandchild controls are created depends on the child
controls. If the child happens to call EnsureChildControls, then the
children of that child will be created.
--
John Saunders
John.Saunders at SurfControl.com
"Sally" <po**************@yahoo.com> wrote in message
news:ff**************************@posting.google.c om...
EnsureChildControls makes sure CreateChildControls() is called

So then the children are "created"

What does "created" actually mean? Is only Constructor() call?
OnInit()? OnLoad()? ...?

Guessing EnsureChildControls() is recursive. Are the grandchildren
"created" to?

Nov 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

220 posts views Thread by Brandon J. Van Every | last post: by
92 posts views Thread by Reed L. O'Brien | last post: by
6 posts views Thread by WindAndWaves | last post: by
1 post views Thread by Sally | last post: by
5 posts views Thread by Dimitris Pantazopoulos | last post: by
669 posts views Thread by Xah Lee | last post: by
1 post views Thread by shapper | last post: by
NeoPa
reply views Thread by NeoPa | last post: by
reply views Thread by YellowAndGreen | last post: by
aboka
reply views Thread by aboka | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.