If you want to dynamically load it, you'd do something like:
public class First : UserControl
{
private string _innerContentPath;
public string InnerContentPath{
get { return _innerCOntentPath; }
set { _innerContentPath = value;
}
Page_Load()
{
if (_innerContentPath != null)
{
Control InnerControl = Page.LoadControl(_innerContentPath);
SomePlaceHolder.Controls.Add(InnerControl);
}
}
so then you would do
<UserControl:First runat="server" id="FirstUC"
InnerContentPath="SomeOtherUserControl.ascx" />
Hope I didn't misunderstand..
Karl
--
MY ASP.Net tutorials
http://www.openmymind.net/
"Alexander Widera" <aw**@hrz.tu-chemnitz.de.invalid.de> wrote in message
news:eq**************@TK2MSFTNGP09.phx.gbl...
How can I include an usercotrol into an other usercontrol...
for example:
<UserControl:First runat="server" id="firstUC" content="..." />
and i want to refer an other UserControl (e.g. called "Second") to the
property "content" of usercontrol "First".
Thanks for help