标签:
@using (Ajax.BeginForm("Search", new RouteValueDictionary { { "id", "" } },
new AjaxOptions { UpdateTargetId = "ListData", HttpMethod = "Get", InsertionMode = InsertionMode.Replace },
new RouteValueDictionary { { "id", "searchForm" } }))
{……}
注释:创建了一个ajax的表单,其中动作是Search,参数id是"",http请求的方法是Get,插入方式是替换(如果你做的是瀑布流,还可以用追加),这个表单本身的id是searchForm
标签:
原文地址:http://www.cnblogs.com/xiaoerlang90/p/4305813.html