我正在使用jQuery发回我的控制器,但我想知道如何在ActionResult中传递值作为参数。例如:使用jQuery回发到控制器
我有一个jQuery的岗位:
$.post("Home\PostExample")
,但我想包括从下拉菜单中选择一个值:
@Html.DropDownListFor(m => m.Example, Model.Example, new { @id = "exampleCssId" })
到一个ActionResult:
[HttpPost]
public ActionResult PostExample(string myString)
{
//TODO: Write contents of ActionResult
}
任何帮助,将不胜感激。
谢谢。
这正是我想要的。谢谢。 – BigBadDom 2011-06-02 13:41:57