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

Discussion in '.NET' started by osi_nl, Aug 19, 2006.

  1. osi_nl

    osi_nl

    Joined:
    Aug 15, 2006
    Messages:
    2
    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
     
    osi_nl, Aug 19, 2006
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Karl
    Replies:
    0
    Views:
    4,354
  2. Juan T. Llibre
    Replies:
    1
    Views:
    577
    S. Justin Gengo
    Oct 27, 2005
  3. mantarraya
    Replies:
    2
    Views:
    1,371
    Andrew Thompson
    Aug 5, 2004
  4. MikeB

    J# .Net Redistributable

    MikeB, May 1, 2007, in forum: ASP .Net
    Replies:
    3
    Views:
    1,859
    MikeB
    May 1, 2007
  5. bzaid
    Replies:
    8
    Views:
    591
    James Kanze
    May 28, 2008
Loading...

Share This Page