开发者

pass ActionLink parameters to perform GET

开发者 https://www.devze.com 2023-01-03 15:24 出处:网络
Is the开发者_开发知识库re a way to perform a GET and pass parameters using Ajax.ActionLink <%= Ajax.ActionLink(\"12\", \"ActionMethod\", new { id = 1} ...

Is the开发者_开发知识库re a way to perform a GET and pass parameters using Ajax.ActionLink

<%= Ajax.ActionLink("12", "ActionMethod", new { id = 1} ...

Currently, the line above performs a POST.

Thanks, rod.


<%= Ajax.ActionLink("12", "ActionMethod", new AjaxOptions { HttpMethod = "GET" })%>
0

精彩评论

暂无评论...
验证码 换一张
取 消