PRB: Cannot edit data in grid from Windows CE-based device (320708)
The information in this article applies to:
- Microsoft Windows CE for Pocket PC 2002, when used with:
- Microsoft Pocket Internet Explorer 2.0
- Microsoft ASP.NET (included with the .NET Framework 1.1)
- Microsoft ASP.NET (included with the .NET Framework) 1.0
This article was previously published under Q320708 SYMPTOMS If the following conditions are true
- You click the update link to modify data in an ASP.NET DataGrid control.
-and- - You view the grid on a device that is running Pocket PC
2002 in Pocket Internet Explorer.
you receive the following error message:
Server Error in '/Application Name'
Application. The View State 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 View State 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 View State is invalid for this page and might
be corrupted.]
System.Web.UI.Page.LoadPageStateFromPersistenceMedium()
System.Web.UI.Page.LoadPageViewState()
System.Web.UI.Page.ProcessRequestMain() Version Information: Microsoft
.NET Framework Version:1.0.3705.209; ASP.NET Version:1.0.3705.0
CAUSE The view state that is returned from Pocket Internet
Explorer is truncated. WORKAROUNDUse the Microsoft Mobile Internet Toolkit in the Microsoft .NET Framework version 1.0 or the
ASP.NET Mobile Controls in the .NET Framework version 1.1. To download MMIT, visit the following Microsoft Web site: The ASP.NET Mobile
Controls are built into the Microsoft .NET Framework 1.1. To download the .NET Framework 1.1, visit the following Microsoft Web site: You can also override the default
view state handling. To do this, override the Page.SavePageStateToPersistenceMedium and
the Page.LoadPageStateFromPersistenceMedium methods, and then save the view state on the
server. For more information about Page.SavePageStateToPersistenceMedium, visit the following Microsoft Developer Network Web site: STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
| Modification Type: | Major | Last Reviewed: | 6/25/2004 |
|---|
| Keywords: | kbState kbprb KB320708 kbAudDeveloper |
|---|
|