Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3492590
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T11:46:37+00:00 2026-05-18T11:46:37+00:00

I have an interesting viewstate problem here that I’m having trouble ironing out. Granted

  • 0

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.

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.

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.

<asp:UpdatePanel ID="upEmail" runat="server" >
  <ContentTemplate>
    <asp:MultiView ID="mview" runat="Server" ActiveViewIndex="0">

      <asp:View ID="viewInput" runat="Server">
        <div>
          <asp:Panel ID="pnlEmail" runat="server" DefaultButton="btnSubscribe" Width="100%" EnableViewState="False">
            <asp:TextBox ID="tbEmail" runat="server" Width="125px" CssClass="someClass" title="Enter Your Email Address" />
            <ajaxToolkit:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender1" TargetControlID="tbEmail" WatermarkText="Email Address" runat="server" />
            <asp:RequiredFieldValidator ID="rfEmail" runat="Server" ControlToValidate="tbEmail" ValidationGroup="submit">*</asp:RequiredFieldValidator>
            <asp:ImageButton ID="btnSubscribe" ImageUrl="/Images/social/signup.gif" Imagealign="absmiddle" runat="server" OnClick="BtnSubscribe_Clicked" ValidationGroup="submit" />
            <br />
            <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" />
          </asp:Panel>
        </div>
        <div>
          <asp:Label ID="lblMessage" runat="server" Visible="false" />
        </div>
      </asp:View>

      <asp:View ID="viewSuccess" runat="server">
        Thank You! You will now
        <br />
        receive e-mails!
      </asp:View>

    </asp:MultiView>
  </ContentTemplate>
</asp:UpdatePanel>

I’ve tried disabling the viewstate on the panel and the error still occurs. Can anyone tell me what is going on?

Thank You in advance

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T11:46:38+00:00Added an answer on May 18, 2026 at 11:46 am

    You very likely have a misunderstanding of the control tree. For reference, I recommend the advice of Scott Guthrie:

    http://weblogs.asp.net/alessandro/archive/2008/01/04/failed-to-load-viewstate-typical-problem-with-an-obvious-solution.aspx

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an interesting SQL problem that I need help with. Here is the
I have an interesting problem here. I have a MySql database table that has
I have an interesting problem. The basis of the problem is that my last
I have an interesting content layout proposal but I'm having difficulty figuring out how
I have an interesting challenge that I'm wondering if anyone here can give me
I have an interesting problem, and I can't seem to figure out the lambda
I have an interesting problem with XSL. We have an XML Input file that
I have an interesting problem that seems to be eluding me. Mono's xsp4 only
I have an interesting problem that I'm struggling to fit in MapReduce. I have
I have an interesting encryption problem at hand. I do not know if it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.