Therefore, I am having problems when I try to publish a website. I am in visual studio 2008 sp1.
I have a bunch of custom controls, and on several pages I use them programmatically.
I have a link on an aspx page
<%@ Reference Control="~/UserControls/Foo.ascx" %>
Then using code I use
ASP.usercontrols_foo newFoo control = (ASP.usercontrols_foo)Page.LoadControl("~/UserControls/Foo.ascx");
If I go to the page, it will be fine, but when I go to the site, I will get a compile-time error.
source
share