K
KK
Hi,
I am extending couple of existing controls in ASP.NET
like LinkButton, Label, TextBox etc..
I require these controls to contain a child control of MyControlType
so ideally in HTML view for a label
<asp:Label id="" [other properties...] >
<cc1:MyControlType id="" [other properties...] />
<cc1:MyControlType id="" [other properties...] />
<cc1:MyControlType id="" [other properties...] />
</asp:Label>
this kind of a thing should happen. So all my extended classes are
decorated with PArseChildren(false, <Property>)
It works fine for LinkButton. when I check LinkButton.Controls it
now has the MyControlType populated. However, for a Label it doesn't
work. Whenever i include a MyControlType within the label, Label's TEXT
property gets empty and controls.count remains ZERO. Why ?
Is this by design? (which means I won't be able to have nested controls for
Label, TextBox etc.. ?)
Any help is appreciated
KK
I am extending couple of existing controls in ASP.NET
like LinkButton, Label, TextBox etc..
I require these controls to contain a child control of MyControlType
so ideally in HTML view for a label
<asp:Label id="" [other properties...] >
<cc1:MyControlType id="" [other properties...] />
<cc1:MyControlType id="" [other properties...] />
<cc1:MyControlType id="" [other properties...] />
</asp:Label>
this kind of a thing should happen. So all my extended classes are
decorated with PArseChildren(false, <Property>)
It works fine for LinkButton. when I check LinkButton.Controls it
now has the MyControlType populated. However, for a Label it doesn't
work. Whenever i include a MyControlType within the label, Label's TEXT
property gets empty and controls.count remains ZERO. Why ?
Is this by design? (which means I won't be able to have nested controls for
Label, TextBox etc.. ?)
Any help is appreciated
KK