I have broken down the site I am developing into multiple files developed as user controls. It makes more sense to simply add a single usercontrol than to add half a dozen or more other controls to multiple pages, plus when I need to edit the item it gets applied site-wide. However, there seems to be an issue that I am not sure how to handle.
I have a user control "header.ascx" that is included on several webpages.
<%@ Register Src="menu.ascx" TagName="menu" TagPrefix="uc1" %>
<div id="header">
<div id="orgname" class="headerinfo" style="position: relative; z-index: 1500; text-align: right"> <asp:Label ID="lblOrganizationName" runat="server" Font-Names="Arial Black" ForeColor="Gray" Text="Organization Name" Font-Size="Large"></asp:Label> </div> <div id="logindetails" class="headerinfo" style="text-align: right; position: relative; z-index: 1500; top: 0px; left: 0px;"> <asp:Label ID="lblUser" runat="server" Font-Names="Arial" ForeColor="Gray" Text="User Name" Font-Size="Small"></asp:Label> <asp:LoginStatus ID="LoginStatus1" runat="server" Font-Names="Tahoma,Arial" ForeColor="#FF6600" /> <asp:Label ID="lblPage" runat="server" Font-Names="Arial Black" ForeColor="Gray" Text="" Font-Size="Small"></asp:Label> <uc1:menu ID="menu1" runat="server" /> </div> </div>As you can see, I have also included a user control "menu.ascx" that is part of the header as well as part of other pages that don't include the full header.
When I view menu.ascx in the IDE, the menu is rendered correctly. If I view header.ascx in the IDE the menu is rendered correctly, however, whenever I view any page in the IDE that has a header user control, I get an error "Unknown server tag 'telerik:RadMenu'" and the menu isn't rendered.
When the menu isn't nested in another user control, it displays correctly. However, when it is included as part of a larger user control, it does not.
I can build the site and it renders correctly in the browser, however, I cannot see how it interacts with the design when it will not show on the main page.
Am I missing a directive or something so this will display?