Copied to clipboard

Flag this post as spam?

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


  • Michael 34 posts 54 karma points
    Feb 03, 2014 @ 18:17
    Michael
    0

    /umbraco/RenderMvc Error

    Hi,

    I have just created a contact form and when I click submit on the page below I get an error saying the umbraco/RenderMvc couldnt be found

    @model MyProject_Umbraco.Models.ContactFormViewModel

     

    @using(Html.BeginUmbracoForm<MyProject_Umbraco.Controllers.ContactFormSurfaceController>("HandleFormSubmit")) {

     

        <div class="controls controls-row">

            @Html.TextBoxFor(m => m.Name, new {@placeholder = "Name" })

            @Html.TextBoxFor(m => m.Email, new { @placeholder = "Email Address" })

     

            @Html.TextAreaFor(m => m.Message, new { @placeholder = "Your Message" })

     

            <button id="contact-submit" type="submit" >Submit</button>

     

        </div>

     

    }

  • Mark Kneasel 22 posts 43 karma points
    Apr 30, 2014 @ 16:43
    Mark Kneasel
    0

    I am having the exact same problem. Can anyone help us with this issue and why we receive the error

  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    May 02, 2014 @ 14:17
    Dave Woestenborghs
    0

    Can you post the code of your surface controller ?

  • Mark Kneasel 22 posts 43 karma points
    May 02, 2014 @ 14:55
    Mark Kneasel
    1

    I actually finally found my issue.  In my template the following code was around my macro:

    <form runat="server">

    </form>

    After I removed it everything worked.  Now on to learning more MVC and Umbraco

Please Sign in or register to post replies

Write your reply to:

Draft