Click here to Skip to main content
13,141,747 members (59,581 online)
Rate this:
Please Sign up or sign in to vote.
See more:
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 0: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
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web01 | 2.8.170915.1 | Last Updated 24 Dec 2012
Copyright © CodeProject, 1999-2017
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