@using(Ajax.BeginForm("Comment",new AjaxOptions { UpdateTargetId = "hello", InsertionMode = InsertionMode.InsertAfter, LoadingElementId="new"}))
{
}
以上是请求页.
请求到的控制器的方法为
public ActionResult Comment(string txt1)
{
ViewBag.content =txt1;
return PartialView();
}
@ViewBag.content
clickme
我们都有一个家,名字叫中国
请求得到的结果并不是id=new里面的内容,而是把所有内容都加载了,这是为什么么呢,烦请指教