Cannot use Html.ActionLink in asp.net mvc spark files

Posted by midas06 on Stack Overflow See other posts from Stack Overflow or by midas06
Published on 2009-07-04T06:23:34Z Indexed on 2010/04/04 11:23 UTC
Read the original article Hit count: 543

I'm using the spark view engine with my asp.net mvc application. In my aspx pages, I can succesfully use Html.Actionlink, but when I attempt it in spark files, it doesnt show up in intellisense, and when i try to run it anyway, i get:

Dynamic view compilation failed. c:\Users\midas\Documents\Visual Studio 2008\Projects\ChurchMVC\ChurchMVC\Views\Home\Index.spark(73,25): error CS1061: 'System.Web.Mvc.HtmlHelper' does not contain a definition for 'ActionLink' and no extension method 'ActionLink' accepting a first argument of type 'System.Web.Mvc.HtmlHelper' could be found (are you missing a using directive or an assembly reference?)

I do have system.web.mvc referenced, and I have added in _global.spark. None of that helps. Any ideas?

© Stack Overflow or respective owner

Related posts about asp.net-mvc

Related posts about spark-view-engine