-----------------------------------------------------------
New Message on BDOTNET
-----------------------------------------------------------
From: jeyank
Message 3 in Discussion
There are three scenarios where this kind of error message will come.
one of the case is when using Server.Transfer method.
If you are using Server.Transfer method in your web , then
the following solution could solve your problem.
Assume that you are having pages Page1:
contains Server.Transfer method ;it points to the URL Page2 ...then
Solution: set the second argument of the Server.Transfer method as
false; That's all.
Explanation: MAC (Message Authentication Check) on View state will
fail ( the result of which
you received this error message), if this second argument set as "True".
why is it so?
The second argument true means you are trying to pass query string , form field values
including hidden field _ViewState of Page1 to Page2.
EnableViewStateMAC(MessageAuthenticationCheck) is defaultly true. meaning MAC will be
performed on every page (Note: A view state MAC is an encrypted version the hidden
variable that a page's view state is persisted to when sent
to the browser. When you set this attribute to true, the
encrypted view state is checked to verify that it has not
been tampered with on the client.)
Naturally MAC will be performed on Page2 also , results in "ViewState Corrupted
Message".
because it has got two View States Page1 and Page2
... :) MAC is designed perform its check on every Page ...
so The options are either you have to specify EnableViewStateMAC as false(not
recommened one)
or The second arugment of Server.Transfer as false.
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/bdotnet/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you received
this message by mistake, please click the "Remove" link below. On the pre-addressed
e-mail message that opens, simply click "Send". Your e-mail address will be deleted
from this group's mailing list.
mailto:[EMAIL PROTECTED]