Should the helper module be in App_Code for MVC to recognize when using VB.net

When I have my helpers in the App_Code Directory of my APS.NET MVC VB application, I can type <% = HTML.ImageUrl ("myImage.gif")%>

If I move it to a different folder, I get errors. I'm guessing I can import the application namespace to get it working, but is this necessary?

0


source to share


1 answer


Do you have a namespace that you are inserting into web.config?



<pages>
     <namespaces>
          <add namespace="Your.Name.Space" />
     </namespaces>
</pages>

      

0


source







All Articles