Click here to Skip to main content
16,018,114 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I created this aspx webform and I used a template which was downloaded free from the Internet.
Then I added an asp:Button onto this page and when I click on that button at runtime, following error is coming.


The state information is invalid for this page and might be corrupted.

CSS
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: The state information is invalid for this page and might be corrupted.

Source Error:

[No relevant source lines]

Source File: c:\Users\IT-1\AppData\Local\Temp\Temporary ASP.NET Files\root\c8803fef\a28e6045\App_Web_x2tlukb3.2.cs    Line: 0
Posted
Comments
Lakxman 15-Mar-12 7:03am    
From the information what you gave I would suggest that this could be due to that the Viewstate of the page is changed by dynamically added controls during any ajax requests. Can you share where the button control has been placed? Does it do any ajax postback?
ZurdoDev 15-Mar-12 7:59am    
As Lakxman said, it is usually because the form has been changed dynamically on the client side making the viewstate invalid for what is getting sent back to the server.
sawant parag 13-Apr-12 7:06am    
Then i how to solve the above error.
i am also facing the same error. :(

1 solution

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