MVC3 Html.ActionLink Post

前端 未结 3 998
后悔当初
后悔当初 2020-12-19 05:56

I have an MVC3 C#.NET web app and need to call a view using Html.ActionLink. I can\'t tell from the documentation if I can specify the POST or GET. Below is my HTML, is th

3条回答
  •  没有蜡笔的小新
    2020-12-19 06:10

    You can also use Ajax.ActionLink where you can specify POST or GET

    @Ajax.ActionLink("Create New", "Edit", "Subtask",
                      new AjaxOptions{ HttpMethod="Post"}) 
    

提交回复
热议问题