C
Christian Ista
Hello,
I have a UserControl, added to a panel like this (in the Page_Load of
default.aspx).
Code :
Control login = LoadControl("controls/Login.ascx");
panel1.Controls.Add(login);
No problem.
In the codebehind of this UserControl, I have a public method.
but in the Page_Load I can't access it, the method is unknown
I tried this : login.MyFunction(); The method doesn't appear in the method
list and we are in the same namespace.
Do you know why ?
Thanks,
Christian,
I have a UserControl, added to a panel like this (in the Page_Load of
default.aspx).
Code :
Control login = LoadControl("controls/Login.ascx");
panel1.Controls.Add(login);
No problem.
In the codebehind of this UserControl, I have a public method.
but in the Page_Load I can't access it, the method is unknown
I tried this : login.MyFunction(); The method doesn't appear in the method
list and we are in the same namespace.
Do you know why ?
Thanks,
Christian,