Copied to clipboard

Flag this post as spam?

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


  • kristian schneider 190 posts 351 karma points
    Jan 17, 2013 @ 18:32
    kristian schneider
    1

    'System.Web.WebPages.Html.HtmlHelper' does not contain a definition for 'BeginUmbracoForm'

    When I try to use BeginUmbracoForm my razor view cant figure it out. Do I need to reference something?

    I tried @using Umbraco.Web 

    and the gives me:

    'System.Web.WebPages.Html.HtmlHelper' does not contain a definition for 'BeginUmbracoForm' and the best extension method overload 'Umbraco.Web.HtmlHelperRenderExtensions.BeginUmbracoForm(System.Web.Mvc.HtmlHelper, string, string)' has some invalid arguments

     

    My line looks like this:

      @using (Html.BeginUmbracoForm("CreateComment", "BlogPostSurface"))
                    {

  • kristian schneider 190 posts 351 karma points
    Jan 18, 2013 @ 10:31
    kristian schneider
    0

    It seems my problem was that I placed it in "macroscripts" instead of "views/MacroPartials"

  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Jan 18, 2013 @ 13:33
    Anthony Dang
    0

    Yes that would do it.

     

Please Sign in or register to post replies

Write your reply to:

Draft