这里RedirectToAction()
不调用ActionResult
索引。我需要为此注册路线吗?
[ActionName("onchange")]
[AcceptVerbs(HttpVerbs.Post)]
public ActionResult OnChange(int i)
{
m_NumberOfVisibleItems = i;
return RedirectToAction("Index");
}
这里RedirectToAction()
不调用ActionResult
索引。我需要为此注册路线吗?
[ActionName("onchange")]
[AcceptVerbs(HttpVerbs.Post)]
public ActionResult OnChange(int i)
{
m_NumberOfVisibleItems = i;
return RedirectToAction("Index");
}