Note that there are some explanatory texts on larger screens.

plurals
  1. POjquery breaks with updatepanel on fancybox saying the state information is invalid for this page and might be corrupted
    primarykey
    data
    text
    <p>I have a main master page named Site.master</p> <pre><code>&lt;%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Site.master.cs" Inherits="Fancybox.SiteMaster" %&gt; &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"&gt; &lt;head&gt; &lt;title&gt;&lt;/title&gt; &lt;link href="~/Styles/Site.css" rel="stylesheet" type="text/css" /&gt; &lt;%-- JQUERY--%&gt; &lt;script src="&lt;%= ResolveClientUrl("~/Scripts/jquery-1.7.2.js") %&gt;" type="text/javascript"&gt; &lt;/script&gt; &lt;%-- JQUERYui --%&gt; &lt;script src="&lt;%= ResolveClientUrl("~/jquery-ui-1.8.21.custom.min.js") %&gt;" type="text/javascript"&gt;&lt;/script&gt; &lt;link rel="stylesheet" href="&lt;%= ResolveClientUrl("~/Styles/jquery-ui-1.8.21.custom.css") %&gt;" type="text/css" media="screen" /&gt; &lt;%-- FANCYBOX VERSION 1.3.4--%&gt; &lt;script type="text/javascript" src="&lt;%= ResolveClientUrl("~/Scripts/jquery.fancybox-1.4.3.min.js") %&gt;"&gt; &lt;/script&gt; &lt;link rel="stylesheet" href="&lt;%= ResolveClientUrl("~/Styles/style-fancybox-1.3.4.css") %&gt;" type="text/css" media="screen" /&gt; &lt;script type="text/javascript" &gt; $(document).ready(function () { $("#LoginLightbox").fancybox({ scrolling: "no" }); }); &lt;/script&gt; &lt;asp:ContentPlaceHolder ID="HeadContent" runat="server"&gt; &lt;/asp:ContentPlaceHolder&gt; &lt;/head&gt; &lt;body&gt; &lt;form runat="server"&gt; &lt;asp:ScriptManager runat="server"&gt; &lt;/asp:ScriptManager&gt; &lt;div class="page"&gt; &lt;div class="header"&gt; &lt;div class="title"&gt; &lt;h1&gt; My ASP.NET Application &lt;/h1&gt; &lt;a href="Login.aspx?iframe=true" id="LoginLightbox"&gt;PRESIONAR&lt;/a&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="main"&gt; &lt;asp:ContentPlaceHolder ID="MainContent" runat="server"/&gt; &lt;/div&gt; &lt;div class="clear"&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="footer"&gt; &lt;/div&gt; &lt;/form&gt; </code></pre> <p> </p> <p>When i click on the link Presionar a fancybox is displayed as an iframe.</p> <p>This iframe is other Masterpage named litebox.master</p> <pre><code>&lt;%@ Master Language="C#" AutoEventWireup="true" CodeBehind="litebox.master.cs" Inherits="Fancybox.litebox" %&gt; &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;head&gt; &lt;title&gt;&lt;/title&gt; &lt;asp:ContentPlaceHolder ID="head" runat="server"&gt; &lt;/asp:ContentPlaceHolder&gt; &lt;/head&gt; &lt;body&gt; &lt;form id="form1" runat="server"&gt; &lt;asp:ScriptManager ID="ScriptManager1" runat="server"&gt;&lt;/asp:ScriptManager&gt; &lt;div&gt; &lt;asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server"&gt; &lt;/asp:ContentPlaceHolder&gt; &lt;/div&gt; &lt;/form&gt; &lt;/body&gt; </code></pre> <p></p> <p>The page that uses the litebox.master is Login.aspx</p> <pre><code>&lt;%@ Page Title="" Language="C#" MasterPageFile="~/litebox.Master" AutoEventWireup="true" CodeBehind="login.aspx.cs" Inherits="Fancybox.login" %&gt; &lt;%@ Register TagPrefix="uc1" TagName="Login" Src="~/control/Login.ascx" %&gt; &lt;asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="head"&gt; &lt;link rel="stylesheet" href="Template/Styles/style.css" type="text/css" media="screen" /&gt; &lt;/asp:Content&gt; &lt;asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="ContentPlaceHolder1"&gt; &lt;uc1:Login ID="LoginControl" runat="server"&gt;&lt;/uc1:Login&gt; &lt;/asp:Content&gt; </code></pre> <p>And finally the usercontrol Login.ascx is</p> <pre><code>&lt;%@ Control Language="C#" AutoEventWireup="true" CodeBehind="login.ascx.cs" Inherits="Fancybox.control.login" %&gt; &lt;div style="width:400px;height:400px;background-color:Blue"&gt; &lt;div style="color:White"&gt;Hola&lt;/div&gt; &lt;asp:TextBox ID="txtnombre" runat="server"&gt;&lt;/asp:TextBox&gt; &lt;asp:TextBox ID="txtcontrasena" runat="server"&gt;&lt;/asp:TextBox&gt; &lt;asp:UpdatePanel runat="server" ID="updPanelLoginIncorrecto"&gt; &lt;ContentTemplate&gt; &lt;asp:CustomValidator ForeColor="Red" OnServerValidate="usuarioExistente_Validation" Display="Static" Font-Size="Small" runat="server" ID="vldLogin" ValidationGroup="grupoValidacionLoginUsuario" Text="HEYYY"&gt; &lt;/asp:CustomValidator&gt; &lt;/ContentTemplate&gt; &lt;Triggers&gt; &lt;asp:AsyncPostBackTrigger ControlID="btnregistro" EventName="Click" /&gt; &lt;/Triggers&gt; &lt;/asp:UpdatePanel&gt; &lt;asp:Button ID="btnregistro" runat="server" onclick="btnregistro_Click" ValidationGroup="grupoValidacionLoginUsuario"/&gt; &lt;/div&gt; </code></pre> <p>When i press the button btnregistro for the first time it works great and if the page is invalid displays heyyy as says in the custom validator. The problem is when i press the button the following times, it breaks</p> <p>The firefox console throws me this error</p> <pre><code>Timestamp: 08/08/2012 18:15:42 Error: Sys.WebForms.PageRequestManagerServerErrorException: Sys.WebForms.PageRequestManagerServerErrorException: the state information is invalid for this page and might be corrupted. Source File: http://localhost:6037/Scripts/jquery-1.7.2.js Line: 2121 </code></pre> <p>The line where it breaks jquery is </p> <pre><code>jQuery.dequeue( elem, type ); </code></pre> <p>Please help me out! I have been fighting with this error for weeks and i dont know what else to do, i did google a lot but did not find any solution!!!</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload