【发布时间】:2013-06-15 05:55:53
【问题描述】:
我有一个通过 Razor 生成的表单:
using (Ajax.BeginForm("SaveProfile", "Settings", new { AccountID = Model.AccountID },
new AjaxOptions { HttpMethod = "Post" }))
RouteValues 对象 new { AccountID = Model.AccountID } 被推入查询字符串,即使我没有在项目中的任何地方指定这样做。
如何将这些值传递给我的控制器操作而不让它们显示在 URL 中?
【问题讨论】:
-
我已经编辑了你的标题。请参阅“Should questions include “tags” in their titles?”,其中的共识是“不,他们不应该”。
标签: asp.net-mvc web-applications