Determine if custom control is being added dynamically?

D

Donal McWeeney

Hi,

Is it possible to determine in your custom control code if it is being added
to the control hierarchy through page parsing or being added dynamically via
code.

Thanks

Donal
 
J

Janaka

You can check where it is in the Page's controls hierarchy? I usually use
a PlaceHolder class to place my dynamically added controls in
 
D

Donal McWeeney

Thanks...

Janaka said:
You can check where it is in the Page's controls hierarchy? I usually
use a PlaceHolder class to place my dynamically added controls in
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,266
Messages
2,571,083
Members
48,773
Latest member
Kaybee

Latest Threads

Top