Note that there are some explanatory texts on larger screens.

plurals
  1. POFailed to load viewstate
    primarykey
    data
    text
    <p>I have an interesting viewstate problem here that I'm having trouble ironing out. Granted I'm not an expert at dealing with the viewstate, it is probably one of the most confusing theings about .NEt but that is neither here no there. Here is the error I'm getting.</p> <blockquote> <p>Failed to load viewstate. The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request.</p> </blockquote> <p>What is weird about this is that it only happens on the homepage of the site (code is located in footer of master page). Every other page on the site it works fine. Here is the aspx code. Note this is in the footer of the master file.</p> <pre><code>&lt;asp:UpdatePanel ID="upEmail" runat="server" &gt; &lt;ContentTemplate&gt; &lt;asp:MultiView ID="mview" runat="Server" ActiveViewIndex="0"&gt; &lt;asp:View ID="viewInput" runat="Server"&gt; &lt;div&gt; &lt;asp:Panel ID="pnlEmail" runat="server" DefaultButton="btnSubscribe" Width="100%" EnableViewState="False"&gt; &lt;asp:TextBox ID="tbEmail" runat="server" Width="125px" CssClass="someClass" title="Enter Your Email Address" /&gt; &lt;ajaxToolkit:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender1" TargetControlID="tbEmail" WatermarkText="Email Address" runat="server" /&gt; &lt;asp:RequiredFieldValidator ID="rfEmail" runat="Server" ControlToValidate="tbEmail" ValidationGroup="submit"&gt;*&lt;/asp:RequiredFieldValidator&gt; &lt;asp:ImageButton ID="btnSubscribe" ImageUrl="/Images/social/signup.gif" Imagealign="absmiddle" runat="server" OnClick="BtnSubscribe_Clicked" ValidationGroup="submit" /&gt; &lt;br /&gt; &lt;asp:RegularExpressionValidator ID="regEmail" runat="server" ControlToValidate="tbEmail" ErrorMessage="Please enter a valid email." ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" ValidationGroup="submit" Display="dynamic" ForeColor="" CssClass="error_font_no_hover" /&gt; &lt;/asp:Panel&gt; &lt;/div&gt; &lt;div&gt; &lt;asp:Label ID="lblMessage" runat="server" Visible="false" /&gt; &lt;/div&gt; &lt;/asp:View&gt; &lt;asp:View ID="viewSuccess" runat="server"&gt; Thank You! You will now &lt;br /&gt; receive e-mails! &lt;/asp:View&gt; &lt;/asp:MultiView&gt; &lt;/ContentTemplate&gt; &lt;/asp:UpdatePanel&gt; </code></pre> <p>I've tried disabling the viewstate on the panel and the error still occurs. Can anyone tell me what is going on?</p> <p>Thank You in advance</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.
 

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