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 :(
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 :(
is working on a reply...