publish web with nested dynamic user controls

Discussion in 'ASP .Net' started by CBW, May 15, 2006.

  1. CBW

    CBW Guest

    I have a user control called "field.ascx" that is dynamically created
    by another user control "form.ascx". I dynamically create it and
    reference it in the codebehind of form.ascx using

    (ASP.lbt_field)LoadControl("field.ascx")


    This works fine when I build the website and run it until I try to
    publish the website. Then I get an error


    Error 1 The type or namespace name 'lbt_field' does not exist
    in the
    namespace 'ASP' (are you missing an assembly reference?)


    My user control field is defined with:
    <%@ Control Language="C#" AutoEventWireup="true"
    CodeFile="field.ascx.cs" classname="lbt_field"
    Inherits="webUI_UserControls_field" %>
    CBW, May 15, 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. Michael Ramey
    Replies:
    2
    Views:
    683
    Michael Ramey
    Feb 4, 2004
  2. Replies:
    5
    Views:
    5,579
  3. Ronald
    Replies:
    2
    Views:
    835
    Robbe Morris [C# MVP]
    Jan 17, 2006
  4. Tim Royal
    Replies:
    0
    Views:
    716
    Tim Royal
    Aug 28, 2008
  5. Denny Smolinski via .NET 247

    Dynamic Controls, Placeholder, Retrieve Information from Dynamic Controls

    Denny Smolinski via .NET 247, May 4, 2004, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    459
    Eidolon
    May 4, 2004
Loading...

Share This Page