How to load nested user control (Usercontrol which contains another user control in it)

Dec 8, 2010 at 9:03 PM

Hi, 

I use ReturnOfSmartPart 1.3. I tried to use a user control which contains another user control in it and get an error "The referenced file '/CtlTest1.ascx' is not allowed on this page". 

2 user controls I have. CtlTest1.ascx and CtlMain.ascx.

In CtlMain.ascx, I use CtlTest1.ascx control. Finally I want to load CtlMain.ascx in sharepoint using ReturnOfSmartPart. I get the error message "The referenced file '/CtlTest1.ascx' is not allowed on this page". Please advice me.

Thanks,

Naush