Turning an ascx user control into a redistributable custom control dll problems

Joined
Aug 15, 2006
Messages
2
Reaction score
0
I have an usercontrol based on a asxc and asxc.cs file and rebuild it into a dll using the Web deployment project. WHen I use the control via a
<%@Register Assembly="my.Controls" Namespace="MYCONT" TagPrefix="xxx"%>

<asp:Content ID="Content1" ContentPlaceHolderID="AdminPlaceHolder" runat="Server">
<xxx:mycontrol1 ID="cmsInfo" runat="server" />

The 'mycontrol1' control loads ok but the controls containing within the original ascx file: grids, buttons etc have a null reference. I have viewed the my.Controls.dll (created without debug info and excluding the appcode) and it contains several several namespaces:
MYCONT, ASP and __ASP. I noticed in the ASP namespace may of the ascx controls have a __Buildcontrol'originalName' type name where 'originalname' is that of the control in the original ascx file. The __ASP contains an ASP.FastObjectFactory member.

The documentation indicates that its just a simple build dll and go...but like everything in ASP I've just wasted another day, because I HOPE some simple oversight.

Herman
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,535
Members
45,008
Latest member
obedient dusk

Latest Threads

Top