Nested User Controls RRS feed

  • Question

  • User1982844092 posted

     I have a control named default.ascx that contains another user control like this:

    <%@ Control Language="C#" ClassName="Default" %>
    <%@ Register src="~/Controls/Request/SelectApplications.ascx" TagName="SelectAppliactions" TagPrefix="uc1" %>

    <uc1:SelectAppliactions ID="SelectApplications1" runat="server" />

     Runtime is not showing the contents of SelectApplications and the path is correct in the register as well as there is definitely mark-up in the SelectApplications.ascx that has been working fine in an .aspx prior.

    I've never nested user controls so I don't know what you need to look out for if anything.

    Tuesday, August 12, 2008 10:05 AM

All replies

  • User1982844092 posted

     OK, these .ascx's are in an MS AJAX Tab Panel.  What I had in the nested .ascx (the Selectapplications.ascx) was a ModalPopupExtender.  When I commented that out, all was fine. So can you not use MS AJAX Controls within nested user controls within an existing MS AJAX control (such as in my case the Tab control from the Toolkit)?

    Tuesday, August 12, 2008 10:34 AM