Click here to Skip to main content
Rate this: bad
good
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 0:03am

1 solution

Rate this: bad
good
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.
  Permalink  
v2

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

  Print Answers RSS
0 OriginalGriff 255
1 Sergey Alexandrovich Kryukov 150
2 BotCar 105
3 Richard MacCutchan 100
4 ChauhanAjay 95
0 Sergey Alexandrovich Kryukov 9,056
1 OriginalGriff 8,041
2 CPallini 2,613
3 Richard MacCutchan 2,221
4 Abhinav S 1,928


Advertise | Privacy | Mobile
Web02 | 2.8.140827.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