HighTechTalks DotNet Forums  

CompositeControl: At Design Time, Child Elements not in Controls Property

ASP.net Building Controls microsoft.public.dotnet.framework.aspnet.buildingcontrols


Discuss CompositeControl: At Design Time, Child Elements not in Controls Property in the ASP.net Building Controls forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Meron LAVIE
 
Posts: n/a

Default CompositeControl: At Design Time, Child Elements not in Controls Property - 06-23-2010 , 09:21 AM






I am designing a custom control based on CompositeControl.

However, i do NOT want to design my child controls in code, but rather as
embedded elements, such as:

<cc:MyCompositeControl ID="MyControl">
<asp:Label>Cat</asp:Label>
<asp:Label>Cat</asp:Label>
</cc:MyCompositeControl>

At run time, MyControl.Controls contains the two labels as expected.

At design time, MyControl.Controls is empty.

I need this information at design time for varius reasons.

What am I doing wrong?

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.