I have some controls in my GeneralControls assembly (classic DLL) that consist of a .ascx file (and code for them).
I reference this DLL and use controls like:
<%@ Register Tagprefix="g" Assembly="GeneralControls" Namespace="GeneralControls.UI" %>
<g:FooterControl ID="Footer" runat="server" />
but FooterControl contains some other controls (labels, etc.), and those used with codebehind throw NullArgumentException. What is the correct way to share ascx controls? Thanks in advance.
source
share