Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at

  • Jeremy 8 posts 29 karma points
    Oct 11, 2011 @ 17:39

    No reference to System.Web.Mvc.Html

    Hello! Again, great job on this project!


    I notice in your video, you do not make a 'using' reference to System.Web.Mvc.html. How are you able to use the Html extension methods in your view without this reference?

    If I try to use Html.BeginForm or any of the Html extensions without an explicit reference in the view, my view fails to render in Umbraco.

    Am I missing something?



  • Richard Boelen 61 posts 153 karma points
    Oct 12, 2011 @ 08:36
    Richard Boelen

    Hi ,

    you can add namespace references in your web.config (in the views folder) That way you do not have to reference them in the views directly




  • Richard Boelen 61 posts 153 karma points
    Oct 12, 2011 @ 08:39
    Richard Boelen

    Another thing...I started with a mvc razor project, that way all reference should already be in place

Please Sign in or register to post replies

Write your reply to: