Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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>
}
I am having the exact same problem. Can anyone help us with this issue and why we receive the error
Can you post the code of your surface controller ?
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
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
/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>
}
I am having the exact same problem. Can anyone help us with this issue and why we receive the error
Can you post the code of your surface controller ?
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
is working on a reply...