Hi
Maybe it's because it's Friday afternoon but I can't work out how to simply
use the same Label control in two different PlaceHolder controls. This is
what happens. When I add the Label to the second PlaceHolder it's removed
from the first. I want any changes to the Label to be reflected in both
PlaceHolders.
Label lb = new Label();
lb.Text = "Label";
PlaceHolder1.Co ntrols.Add(lb);
Response.Write( PlaceHolder1.Ha sControls().ToS tring()); // true
PlaceHolder2.Co ntrols.Add(lb);
Response.Write( PlaceHolder1.Ha sControls().ToS tring()); // false
In real live the Label with be a custom control with child controls. What
should I do?
Thanks
Andrew
Comment