【发布时间】:2014-02-13 06:15:58
【问题描述】:
我必须在控制器中调用 post action 方法。我的剃刀观点是
@using (Html.BeginForm())
{
@Html.TextBox("count")
// here i have many controls
<input type="submit" value="SUBMIT"/>
}
[HttpPost]
public ActionResult Update(string count)
{
// i will do many business related actions
return View();
}
我的问题是,我可以通过单击提交按钮使用普通的 post 调用还是应该使用 ajax post 方法? mvc3中哪种调用方式好,为什么?
【问题讨论】:
标签: c# asp.net-mvc