Getting namespace name not found for ASP.net user control -
So when I try to publish the website, I'm having trouble, I'm in Visual Studio 2008 SP1.
I have a bunch of user controls and on some pages I am using them programmatically.
I have received a reference on the ASPX page
<% @ reference control = "~ / UserControls / Foo.ascx"%> Then using the code, I
ASP.usercontrols_foo newFoo control = (ASP.usercontrols_foo) Page.LoadControl ("~ / UserControls / Foo. Ascx "); If I navigate the page then it works fine, but when I publish the website, I get a compile time error.
Hey, I'm from the development hour blood on this one issue. Can anyone solve this?
BTW: This creates if you uncheck "Make this precompiled site updateable" (right-click on website, property page, select MSW option)
But I The site should be updateable.
Comments
Post a Comment