Copied to clipboard

Flag this post as spam?

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


  • Kevin 15 posts 146 karma points
    Apr 14, 2016 @ 11:40
    Kevin
    0

    Using BeginUmbracoForm

    I have the current Macro Partial View:

    @using UmbracoTestProject.Controllers
    @inherits Umbraco.Web.Macros.PartialViewMacroPage
    
    @model UmbracoTestProject.Model.EmailViewModel
    
    <div class="container" style="margin-bottom: 25px; margin-top: 25px;">
        @{
            using (Html.BeginUmbracoForm<EmailController>("Index", null, new { @class = "form-inline" }, FormMethod.Post))
            {
                @Html.EditorFor(x => Model)
                <input type="submit" />
            }
        }
    </div>
    

    And I get the following error: Error loading Partial View script (file: ~/Views/MacroPartials/Email.cshtml)

    What is wrong with this View?

  • Dennis Aaen 4457 posts 17970 karma points admin hq c-trib
    Apr 14, 2016 @ 12:01
    Dennis Aaen
    1

    Hi Kevin,

    Have you seen this documentation about working with BeginUmbracoForm

    https://our.umbraco.org/documentation/Reference/Templating/Mvc/forms

    Hope this helps,

    /Dennis

  • Kevin 15 posts 146 karma points
    Apr 14, 2016 @ 12:13
    Kevin
    100

    Hi Dennis,

    I have - that's where the posted snippet came from. I was following the documentation.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies