Click here to Skip to main content
16,007,814 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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

1 solution

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.
 
Share this answer
 
v2

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900