publish web with nested dynamic user controls

C

CBW

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" %>
 

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,994
Messages
2,570,223
Members
46,813
Latest member
lawrwtwinkle111

Latest Threads

Top