S
Sam
there's no problem when calling my usercontrol class as follows:
<%@ Register TagPrefix="User" TagName="Element" Src="~/Element.ascx" %>
<User:Element id="elmFirstElement" runat="server">
but, there is a problem when i'm calling it like this:
controls.add(new Elements())
(i'm actually filling a placeholder with a bunch of my usercontrol's)
it seems like the Elements object isn't being filled with the
webcontrols defined in the ascx file.
could someone explain me how usercontrols initialize?
thanx.
Sam.
<%@ Register TagPrefix="User" TagName="Element" Src="~/Element.ascx" %>
<User:Element id="elmFirstElement" runat="server">
but, there is a problem when i'm calling it like this:
controls.add(new Elements())
(i'm actually filling a placeholder with a bunch of my usercontrol's)
it seems like the Elements object isn't being filled with the
webcontrols defined in the ascx file.
could someone explain me how usercontrols initialize?
thanx.
Sam.