Click here to Skip to main content
11,920,211 members (48,543 online)
Rate this:
Please Sign up or sign in to vote.
See more: ASP.NET
I m Getting an error on certain pages of my application the error is "The state information is invalid for this page and might be corrupted."

This error occur on Button click event of pages that are called by Tree view

Plz Share any information or link regarding this Issues...
Posted 24-Dec-12 1:03am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

This usually happens when you dynamically add/remove controls to your page at runtime. To be more specific, are you adding/removing controls of the page during a postback event of the page? Every time you do that, the viewstate of the page is altered. If the view state of the page is modified (by adding/removing controls) during successive postbacks, this error can occur.
Every error is unique to the page, and hence it is difficult to solve it without knowing what is happening on the page. But this is a general hint I am giving you to help you debug the right places.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 455
1 phil.o 170
2 CPallini 150
4 F-ES Sitecore 130
0 OriginalGriff 6,778
1 KrunalRohit 4,495
2 Sergey Alexandrovich Kryukov 3,153
3 George Jonsson 2,810
4 Suvendu Shekhar Giri 2,181

Advertise | Privacy | Mobile
Web01 | 2.8.151120.1 | Last Updated 24 Dec 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100