nested custom control

Y

yaya9

Hi all,
I have built a custom control (X) which has to be place in another
custom control (Y).
I have created a collection of (X) controls in (Y) c'tor. The result
of (Y) Render method don't take the Render of (X), so for now all
rendered HTML transfered only from (Y) control.

How can I implement a combination of rendering both custom control's
HTML?


Thanks - Mike
 
J

John Saunders

yaya9 said:
Hi all,
I have built a custom control (X) which has to be place in another
custom control (Y).
I have created a collection of (X) controls in (Y) c'tor. The result
of (Y) Render method don't take the Render of (X), so for now all
rendered HTML transfered only from (Y) control.

How can I implement a combination of rendering both custom control's
HTML?

Did you add the inner controls to the outer control's Controls collection
with Controls.Add?

See Developing a Composite Control
(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/ht
ml/cpcondevelopingcompositecontrols.asp)
 

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

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top