View State Is Invalid Error message when using Server.Transfer
This is a very common error message we get when we use Server.Transfer with the second parameter set to true, which indicates transferring QueryString as well as Form collection, which contains information about the Form elements.
The common workaround we do is to set EnableViewStateMac to false.
But I read in an article today, that when we store sensitive information in the Viewstate, setting EnableViewStateMac to false, opens a big security hole. Microsoft would not suggest doing this. They suggest transferring server control elements in other ways, setting the element accessors as public. See the following article if you want to know what I am talking about
http://support.microsoft.com/default.aspx?scid=kb;EN-US;316920
Comment Notification
If you would like to receive an email when updates are made to this post, please register here
Subscribe to this post's comments using
Comments