Cannot use Html.ActionLink in asp.net mvc spark files
- by midas06
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?