W
Waldy
Hi there,
I am loading some user controls and I want to populate the
child controls within them, but can't access them. I doing the following in
a loop. However the TitleText or other child controls are not available.
They have the runat server tag.
NoticeItem uc = (NoticeItem)Page.LoadControl("~/noticeitem.ascx");
uc.TitleText = "Some text";
e.t.c
NoticeboardPanel.Controls.Add(uc);
I am loading some user controls and I want to populate the
child controls within them, but can't access them. I doing the following in
a loop. However the TitleText or other child controls are not available.
They have the runat server tag.
NoticeItem uc = (NoticeItem)Page.LoadControl("~/noticeitem.ascx");
uc.TitleText = "Some text";
e.t.c
NoticeboardPanel.Controls.Add(uc);