好的,我有一个页面被拉到fancybox弹出窗口,
(注意:分页在页面本身上 100% 工作),
但是当在fancybox上时,我试图通过中继器进行分页,但没有任何反应。然后我关闭弹出窗口并重新打开它而不刷新页面,现在分页可以工作了吗?
我刷新页面,然后必须完成打开弹出窗口的过程,然后尝试通过中继器进行分页,然后关闭弹出窗口,然后重新打开它,分页再次工作。
谁能指出我可能导致这种情况的正确方向?我已经尝试将“body”更改为“form”方法。
编辑:它确实管理 1 个回发,然后它冻结,如果重新打开工作超过 1 个回发。
编辑:我发现当更新面板发送请求并返回时,它会在更新面板中创建一个辅助 __VIEWSTATE 对象。
被调用页面的代码:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Search.aspx.cs"Inherits="AfricaCentre.Search" EnableEventValidation="false" EnableViewState="false" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<%--<script type="text/javascript" src="<%= ResolveUrl("~/scripts/Scripts.js") %>"></script>--%>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<!-- SEARCH -->
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
Hello
<asp:Button Text="Test" runat="server" />
</ContentTemplate>
</asp:UpdatePanel> </form>
</body>
</html>
使用脚本调用 fancybox 的代码链接按钮:
<a id="search" href="/Search" class="fancybox.ajax">SEARCH</a>
$("#search").fancybox(
{
type: 'ajax',
autoSize: false,
padding: 0,
width: 800,
height: 567,
scrolling: 'no',
openEffect: 'fade',
openSpeed: 'slow',
transitionIn: "elastic",
transitionOut: "elastic",
autoScale: false,
hideOnContentClick: false,
afterLoad: function () {
}
}
);