Copied to clipboard

Flag this post as spam?

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


  • Thor Østergaard 37 posts 58 karma points
    Mar 12, 2015 @ 06:55
    Thor Østergaard
    0

    UmbracoForm issue (v7.2.2)

    Hi,
    I'm having this simple partial view:

    @model ScientDataUmbraco7.Models.BestilModel
    @using (Html.BeginUmbracoForm("BestilForm", "Bestil", null, new {@class="test"}))
    {    
        @Html.TextBoxFor(x => x.Navn)
        <input type="submit" value="Send" />
    }

    And controller:

        public class BestilController : SurfaceController
        {
            [HttpPost]
            public ActionResult BestilForm(BestilModel BestilModel)
            {
                return CurrentUmbracoPage();
            }
        }

    Using this on my site I get

    The resource cannot be found.

    Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable.  Please review the following URL and make sure that it is spelled correctly. 

    Requested URL: /umbraco/RenderMvc

     

    If I remove [HttpPost] my Controller is working fine.

    Do I do something wrong or are we looking at a bug in the UmbracoForm code?

    Ps. I have the same error if I try using Umbrao Forms :(

Please Sign in or register to post replies

Write your reply to:

Draft