我的主要指数是:
<p>@Ajax.ActionLink("Releases", "Index", "Release", new AjaxOptions { InsertionMode = InsertionMode.Replace, UpdateTargetId = "ContentPanel" })</p>
<p>@Ajax.ActionLink("Templates", "Index", "Template", new AjaxOptions { InsertionMode = InsertionMode.Replace, UpdateTargetId = "ContentPanel" })</p>
<p>@Ajax.ActionLink("Testplans", "Index", "Testplan", new AjaxOptions { InsertionMode = InsertionMode.Replace, UpdateTargetId = "ContentPanel" })</p>
如下:
<div id="ContentPanel">
@RenderBody()
</div>
当我点击每个链路的释放,Templates,在交换看法工作之后,测试计划。
When I click in this order:
Releases
Templates
Releases
Templates
转换不再奏效。 问题似乎是,在我控制器指数方法中设置一个空白点时:
public ActionResult Index()
{
return View();
}
The Index Action is called in a looooooop ??
为什么如此?