【发布时间】:2013-07-29 01:10:18
【问题描述】:
有什么方法可以使用 html.actionLink 来发布数据?
public ActionResult Test()
{
return View();
}
[HttpPost]
public ActionResult Test(TestModel test)
{
return View(test);
}
在我看来……
@Html.ActionLink("ClickMe","Test", new {Test1 = "actionLink", Test2 = "actionLinkDidThis"}, FormMethod.Post)
有没有什么方法可以让这个动作链接进入 httpPost 方法而不是 httpGet 方法?
【问题讨论】:
标签: c# asp.net asp.net-mvc post get