S
Sparticus
Hi,
I have created a composite control which, in its simplest form inherits from
Control, implements INamingContainer and provides a method
CreateChildControls. I add my custom control to the html of an aspx page,
provide the register directive with a simple assembly name. The custom
control is a private assembly so has a simple dll in the bin directory. All
is fine, with the control rendering its html to the browser until I try and
obtain an object reference using a protected member assignment in the
code-behind class for the containing page as follows;
protected CustomControl myCustomControl;
I get the following compile error;
'The type or namespace name CustomControl could not be found (are you
missing a using directive or assembly reference?)
Any help would be appreciated.
I have created a composite control which, in its simplest form inherits from
Control, implements INamingContainer and provides a method
CreateChildControls. I add my custom control to the html of an aspx page,
provide the register directive with a simple assembly name. The custom
control is a private assembly so has a simple dll in the bin directory. All
is fine, with the control rendering its html to the browser until I try and
obtain an object reference using a protected member assignment in the
code-behind class for the containing page as follows;
protected CustomControl myCustomControl;
I get the following compile error;
'The type or namespace name CustomControl could not be found (are you
missing a using directive or assembly reference?)
Any help would be appreciated.