So the result is a blank action property and the logical consequence is a button without any function. When i switch the Html.BeginUmbracoForm to Html.BeginForm i get this:
But the action is still without any function. Apart from my public ActionResult SaveInterestedEmail(string email) function whether it is correct or not, i would expect an exception message at least, but even this is not generated.
Do you have got any idea what is wrong in my Umbraco From?
Html.BeginUmbracoForm generates a blank action in <form>
Hi together,
i am pretty new in using Umbraco and i realy like the MVC architecture but i have got an issue with the Html.BeginUmbracoForm function.
I follow this documentation but the result is a blank action property in the form tag.
Detailed view on my method i was try to do it:
First of all i have a @Html.Action("SaveInterestedEmail", "HomeSurface") in my Home.cshtml. This Action executes the following method:
As you see the first ActionResult is called which is responsible for rendering the PartialView _EmailForm.cshtml:
I expect that an email adress which was typed into a textbox is saved into the database. The textbox and the button is displayed correctly:
But all i get in my form method is this:
So the result is a blank action property and the logical consequence is a button without any function. When i switch the Html.BeginUmbracoForm to Html.BeginForm i get this:
But the action is still without any function. Apart from my public ActionResult SaveInterestedEmail(string email) function whether it is correct or not, i would expect an exception message at least, but even this is not generated.
Do you have got any idea what is wrong in my Umbraco From?
is working on a reply...