viewstate error

H

Hillary Hill

I am getting the following error.
Ths steps are
1. A Page with Datagrid and literal control.
2. View state is the default one for all the controls. (Not changed).
3. When user clicks the HTML button, I am redirecting the user to
myNext.aspx page from the client side code as shown.
document.frmForm.action="myNext.aspx";
document.frmForm.submit();
What is the error that I am making here?
Thanks,
Hill
Server Error in '/MyProject' Application.
----------------------------------------------------------------------------
----

The viewstate is invalid for this page and might be corrupted.
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 viewstate is invalid for
this page and might be corrupted.

Source Error:


An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.


Stack Trace:


[HttpException (0x80004005): The viewstate is invalid for this page and
might be corrupted.]
System.Web.UI.Page.LoadPageStateFromPersistenceMedium()
System.Web.UI.Page.LoadPageViewState()
System.Web.UI.Page.ProcessRequestMain()
 
T

TomEgginger

Hi,

actually this is a .net bug (the error message, to be more precise).
Check this msdn article - there is a hotfix available:

The "Viewstate is invalid for this page" error message does not provide
sufficient information to troubleshoot the issue
http://support.microsoft.com/kb/831150/en-us

Regards,

Tom
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top