Server.Execute to a form, Response.Redirect back. The View State is invalid for this page and might be corrupted
Posted on 2005-05-02
I'm using Server.Execute to process a second web form
System.IO.StringWriter swrTarget = new System.IO.StringWriter();
This brings up the second form just fine.
Then I use a button to return to the 1st form
When I do so, I get "The View State is invalid for this page and might be corrupted."
[HttpException (0x80004005): The View State is invalid for this page and might be corrupted.]
Both forms have EnableViewStateMac="false" in their aspx. The second form does a Response.Write, but commenting it out does not fix the problem. WebForm1 and WebForm2 are the correct case-sensitive names. This is a very simple program -- I'm studying the Microsoft MCAD/MCSD book (Chapter 4, Lesson 3).
I'm stuck. Can someone help?