Greetings gentlemen
I'm trying to implement the following code in my View, and unfortunately I'm not getting. The event is called, but I can not receive the parameter.
Does anyone have any ideas?
Method:
<p><%= Html.AjaxButtonLink("btnExcluir","btnExcluir","Excluir", null, Url.Action("Excluir", new { IdMenu = Model.MenuInfo.Id_menu })) %></p>
HTML:
<p><input id="btnExcluir" name="btnExcluir" onClick="Sys.Mvc.AsyncHyperlink.handleClick("/Gerencial/MENUACAO/Excluir/60?IdMenu=60", new Sys.UI.DomEvent(event), { insertionMode: Sys.Mvc.InsertionMode.replace, httpMethod: 'Post' });" type="button" value="Excluir"></input></p>
Controller:
[ AcceptVerbs(HttpVerbs.Post) ]
public ActionResult Excluir(string IdMenu)
string IdMenu always come null!
================
Differences
ActionLink:
<p><a href="/Gerencial/MenuAcao/Excluir/60?IdMenu=60" onclick="Sys.Mvc.AsyncHyperlink.handleClick(this, new Sys.UI.DomEvent(event), { insertionMode: Sys.Mvc.InsertionMode.replace, httpMethod: 'Post' });">Excluir</a></p>
My Button:
<p><input id="btnExcluir" name="btnExcluir" onClick="Sys.Mvc.AsyncHyperlink.handleClick("/Gerencial/MENUACAO/Excluir/60?IdMenu=60", new Sys.UI.DomEvent(event), { insertionMode: Sys.Mvc.InsertionMode.replace, httpMethod: 'Post' });" type="button" value="Excluir"></input></p>
Thanks