E
Eric Robishaw
What's the deal?
If I place a control, a standard Web control (like a panel, or server-side
Table), onto a Web User Control I've created, I can't access the control
from the Code-Behind code.
In the Page_Load event of the Web User Control, if I say:
PlaceHolder1.Controls.Add (new LiteralControl ("<img src='bla.gif'>"));
I get an error: Object null. And sure enough, PlaceHolder1 has no value
set.
If I do a "This.Controls.Count" I get a big fat zero.
What's the deal.
Desperate and annoyed.
Eric
If I place a control, a standard Web control (like a panel, or server-side
Table), onto a Web User Control I've created, I can't access the control
from the Code-Behind code.
In the Page_Load event of the Web User Control, if I say:
PlaceHolder1.Controls.Add (new LiteralControl ("<img src='bla.gif'>"));
I get an error: Object null. And sure enough, PlaceHolder1 has no value
set.
If I do a "This.Controls.Count" I get a big fat zero.
What's the deal.
Desperate and annoyed.
Eric