User control in PlaceHolder, in a MasterPage

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.
 

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,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top