aspx_professional thread: Viewstate Storage "The View State is invalid for this page and might be corrupted!"
Hey Philip,
Thanks for helping me but here is more specific detail of what is going
on. I have read the pages you sent me too..
Here are the steps I am taking to get this message:
1. Page loads with an Email Control visible with purely default values.
2. Click on a hyperlink that passes back to the same page but this time
with an id of a specific contact medium and the type (Lets
say Fax) in the QueryString. By the type determining what
control I am going to make visible.
3. Using the id passed, an instant of the Fax Object is passed to the
Fax Control in its "FaxObject" property.
4. The User then manipulates the properties of the Fax (Example Area
Code) and clicks an image button to make the changes to the FaxObject
by using its Update().
5. This in turn is supposed to transfer to the same page but with
nothing in its querystring. (Doesn't make it this far... Drops as
soon as button is clicked!)
The point that the ViewState becomes invalid is when the user clicks on
the image button to update. The image button is on another image
control. Before anything happens the ViewState is invalid.
Dan Loverock
Systems Developer
Capecom Media Inc.
-----Original Message-----
From: Philip Steel [mailto:PhilipS@t...]
Sent: Tuesday, November 05, 2002 9:06 AM
To: ASPX_Professional
Subject: [aspx_professional] RE: Viewstate Storage "The View State is
inva lid for this page and might be corrupted!"
Are you using Server.Transfer anywherein your code?
This is covered here:
http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q316920&
Otherwise is it a web farm, session timout issue, or perhaps an issue
of a shadow copy of your code?
These latter issues are covered here:
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q323744
The ket bit I thiunk might be here:
"....The case-sensitive value that the TemplateSourceDirectory property
of a
page returns
is used to create and to validate the ViewState property for that page.
The value of this property for a page depends on the case-sensitive URL
that
the first user for that page requested. This value is reused for the
remaining
requests for that page until that page is recompiled. When the page is
recompiled,
the TemplateSourceDirectory property is re-initialized. If the new value
(which is
case-sensitive) differs from the previous value, the ViewState
validation
from the
existing clients fails. ..."
Else, check this thread...
http://www.asp.net/Forums/ShowPost.aspx?tabindex=1&PostID=3138
phil
-----Original Message-----
From: Dan [mailto:dllist@c...]
Sent: 05 November 2002 16:47
To: ASPX_Professional
Subject: [aspx_professional] Viewstate Storage "The View State is
invalid for this page and might be corrupted!"
I have a web form that consists of a control, which has other controls
within it. When I try to set a ViewState variable within any of the
other controls I get this error message.
"The View State is invalid for this page and might be corrupted!"
I am trying to set attributes of an object and then upon clicking of a
button use the update method within the object. Problem is that the
button is not on the same control and as soon as I click the button I
get this message.
Any help would be much appreciated.
Dan Loverock
Systems Developer
Capecom Media Inc.
---
ASP.NET 1.0 Namespace Reference with C#
http://www.wrox.com/acon11.asp?ISBN=1861007442
ASP.NET 1.0 Namespace Reference with VB.NET
http://www.wrox.com/acon11.asp?ISBN=1861007450
These books are a complete reference to the ASP.NET namespaces
for developers who are already familiar with using ASP.NET.
There is no trivial introductory material or useless .NET
hype and the presentation of the namespaces, in an easy-to use
alphabetical order ensures a user-friendly reference format.
We provide in-depth coverage of all the major ASP.NET classes,
giving you those real-world tips that the documentation doesn't
offer, and demonstrating complex techniques with simple
examples.
---
---
ASP.NET 1.0 Namespace Reference with C#
http://www.wrox.com/acon11.asp?ISBN=1861007442
ASP.NET 1.0 Namespace Reference with VB.NET
http://www.wrox.com/acon11.asp?ISBN=1861007450
These books are a complete reference to the ASP.NET namespaces
for developers who are already familiar with using ASP.NET.
There is no trivial introductory material or useless .NET
hype and the presentation of the namespaces, in an easy-to use
alphabetical order ensures a user-friendly reference format.
We provide in-depth coverage of all the major ASP.NET classes,
giving you those real-world tips that the documentation doesn't
offer, and demonstrating complex techniques with simple
examples.
---