why don't htmlhelper extensions work?


i'm building an asp.net mvc website. rather have all project, i've solid removed web, denote controller out opposite projects same solution, anxiety each-other.



the referencing goes this:




web ---[references]---> controller ---[references]---> model




now i wanted supplement 2 tradition methods htmlhelper category - they're called "includescript" "includestyle". any take unparalleled twine parameter, beget book couple add-on respectively.



i've combined an extender class, according support web, combined twin methods collected application.



now, i public.master page (which sure master-page, places where i intend methods), i enter formula such below:



<%= html.includescript("\js\jquery.js") %>



the intellisense picks adult includescript slight shows me syntax only fine. i'd design all should work.



but doesn't.



everything compiles, nonetheless shortly i run application, i following run-time blunder line 14 default.aspx.cs:



c:\\projects\\phonereel\\phonereel.web\\views\\shared\\public.master(11): blunder cs0117: 'system.web.mvc.htmlhelper' does enclose construction 'includescript'



here's line formula blunder happens on:



httphandler.processrequest(httpcontext.current);



any ideas going wrong here?



Comments

Popular posts from this blog

list macos calm editors formula editors

how hibernate @any-related annotations?

using mvc, should hoop communication between views? between models?