B
benjamin.soulier
Hello everyone, here is the problem I got :
I have a Base Web User Control (like a user control containing a
border, for design purpose).
In this User Control, I put a PlaceHolder, and I put a Property to
access this PlaceHolder from outside.
Then I put in a MasterPage the Base Web User Control, and then i use in
MasterPage code behind to add a Web User Control as content of Base
User Control :
MyBaseControl.InnerPlaceHolder.Controls.Add(new WebUserControl());
The problem here is that content of base User control is correctly
displayed, but content of WebUserControl User Control is not displayed
; adding a standart web control is working, but not really interesting
in my case... Do anyone knows how to do it ? Or another solution to
create base controller to handle graphic container part ?
Thanks everyone,
Ben.
I have a Base Web User Control (like a user control containing a
border, for design purpose).
In this User Control, I put a PlaceHolder, and I put a Property to
access this PlaceHolder from outside.
Then I put in a MasterPage the Base Web User Control, and then i use in
MasterPage code behind to add a Web User Control as content of Base
User Control :
MyBaseControl.InnerPlaceHolder.Controls.Add(new WebUserControl());
The problem here is that content of base User control is correctly
displayed, but content of WebUserControl User Control is not displayed
; adding a standart web control is working, but not really interesting
in my case... Do anyone knows how to do it ? Or another solution to
create base controller to handle graphic container part ?
Thanks everyone,
Ben.