【发布时间】:2012-12-25 00:25:46
【问题描述】:
我正在使用 Ajax 填充部分。
当我单击主页上的链接时,部分正确填充。如果我单击另一个链接(它们的列表),它会重新填充。
在我的部分里面,我有一个属性表。一旦我单击页面按钮或标题(按顺序),表格就会消失。并且列表不再可以重新填充。
有人知道为什么吗?
Properties.cshtml部分。
@model IEnumerable<ns.Models.Property>
@{
WebGrid table = new WebGrid(ajaxUpdateContainerId: "properties-partial");
table.Bind(Model);
}
@table.GetHtml()
我的main.cshtml 页面。
<div id="properties-partial">
</div>
@Ajax.ActionLink(
item.Title,
"Properties",
"Home",
new { propertyId = item.propertyId},
new AjaxOptions { UpdateTargetId = "properties-partial" })
我检查了在 Firefox 中进行的调用,并直接输入了 url,它看起来很好(显示正确的数据页面)。好像分页后无法附加到部分,然后就中断了。
【问题讨论】:
标签: c# asp.net ajax jquery pagination