【发布时间】:2012-03-06 10:20:49
【问题描述】:
好的,我有一个页面被拉到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 () {
}
}
);
【问题讨论】:
-
如果您不提供任何代码或问题链接,则很难提供帮助。
标签: updatepanel fancybox repeater custompaging