Click here to Skip to main content
Rate this: bad
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 Sergey Alexandrovich Kryukov 535
1 Kornfeld Eliyahu Peter 407
2 Maciej Los 369
3 DamithSL 221
4 OriginalGriff 218
0 OriginalGriff 6,353
1 DamithSL 4,854
2 Maciej Los 4,476
3 Kornfeld Eliyahu Peter 4,058
4 Sergey Alexandrovich Kryukov 3,917

Advertise | Privacy | Mobile
Web02 | 2.8.141223.1 | Last Updated 24 Dec 2012
Copyright © CodeProject, 1999-2014
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