I've got an MVC app that needs to include a few (not many, but important ones) legacy WebForms pages. I have put these in a WebForms folder in the root of the app to keep them separate. The use a common custom control, but I am having problems accessing this - it needs to be accessed in both the web page and the code behind of the webform. If I create an App_Code/WebFormsControls in the app root, put the file in there and set its NameSpace to "WebFormsControls" I can
<%@ Register TagPrefix="cus" Namespace="WebFormsControls" Src%>
ok, but I can't then access the "WebFormsControls" namespace from the code-behind. If I move that folder anywhere else, I can access the NameSpace from the code-behind but the Register doesn't find it. What am I doing wrong (and please don't say "using WebForms in an MVC app")?
Thanks
MH