Last post Dec 17, 2007 10:00 AM by mattt
Dec 17, 2007 09:54 AM|VBManner|LINK
When using a UserControl you Register it on the page using the elements:
When using a Custom Control it is compiled into a DLL and then you Register the DLL using the elements:
My question is: Can a Custom Control be Registered on a page if it hasn't been compiled into an assembly?
I know it could be added in code behind to the page control collection, but can it be Registered using the Register Directive.
When I put a custom control in APP_CODE directory(vb file not dll) and then use the element:
I get an error telling me this is not allowed.
I know this isn't the normal way of doing things I am asking to learn more about what can and can't be done.
Dec 17, 2007 10:00 AM|mattt|LINK
No, you have to compile a control to register it to a page.