Loading controls at runtime

J

J055

Hi

I'm loading a user control at runtime like this:

ASP.AccountFinder accountFinder =
(ASP.AccountFinder)LoadControl("~/Controls/AccountFinder.ascx");

This works fine in the VS development environment but when I attempt to
compile by using the Publish Website option I get the following error:

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

What do I need to do to make this work in a precompiled application?

Thanks
Andrew
 

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

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,066
Latest member
VytoKetoReviews

Latest Threads

Top