If I run the following code I got error message "A public action method 'PostAction' was not found on controller...". Fiddler shows GET request instead of POST is used. I tried to replace Html.BeginForm by Ajax.BeginForm, it did not help. So what do I do wrong? Thanks.
@using (Html.BeginForm())
{
@Ajax.ActionLink("ClickMe", "PostAction", new AjaxOptions { HttpMethod = "POST" })
}
[HttpPost]
public virtual ActionResult PostAction() { ... }
UPDATE, additional info: That's how MVC generates Html anchor:
<a onclick="Sys.Mvc.AsyncHyperlink.handleClick(this, new Sys.UI.DomEvent(event), { insertionMode: Sys.Mvc.InsertionMode.replace, httpMethod: 'POST' });" href="/.../PostAction/">ClickMe</a>