K
Kevin Attard
Hi there,
i'm using asp.net 2.0 and vs2005.
I am trying to load a usercontrol dynamically when a button is pressed
myUserControl ctl = (myUserControl)Page.LoadControl("myUserControl.ascx");
myUserControl is in the same project but the following error is being thrown
The type or namespace name 'myUserControl' could not be found (are you
missing a using directive or an assembly reference?)
Why isn't the control being found?
i'm using asp.net 2.0 and vs2005.
I am trying to load a usercontrol dynamically when a button is pressed
myUserControl ctl = (myUserControl)Page.LoadControl("myUserControl.ascx");
myUserControl is in the same project but the following error is being thrown
The type or namespace name 'myUserControl' could not be found (are you
missing a using directive or an assembly reference?)
Why isn't the control being found?