我的桌子是用麻.的,可以选择任何页数和浏览数据,但如果在我的浏览器上进行新闻复读,则显示一页。 如何在复读后留在同一页上?
这里是法典的一部分。
@using (Ajax.BeginForm(new AjaxOptions() { UpdateTargetId = "users_rows", Url = Url.Action("UsersRows") }))
{
<table>
<thead>
<tr>
<th>@Resources.Id</th>
<th>@Resources.Login</th>
<th>@Resources.Password</th>
<th>@Resources.FirstName</th>
<th>@Resources.LastName</th>
<th>@Resources.Birthday</th>
<th>@Resources.IsActive</th>
<th>@Resources.Role</th>
<th>@Resources.RegistrationDate</th>
</tr>
</thead>
<tbody id="users_rows">
@Html.Partial("UsersRows", Model)
</tbody>
</table>
}
@Html.Partial("Pager", Model)
页: 1
@model UserManagmentStudio.Domain.IPager
@if (Model.PageCount > 1)
{
for (Int32 i = 1; i <= Model.PageCount; i++)
{
@Ajax.ActionLink(i.ToString(), "Index", new {page = i},
new AjaxOptions()
{
UpdateTargetId = "users_rows",
Url = Url.Action("UsersRows", new { page = i }),
}
)
@: 
}
}