Viewstate Problem URGENT!!!!!

S

Siddhartha Jain

I am getting this error on our application.
"The viewstate is invalid for this page and might be corrupted." I
have spent about 2 days now goin thru the user groups and couldnt find
the solution to this problem. Most of the postings ask if u r on a web
farm or using Server.Transfer.

I am not on a web farm.
I am not using "Server.Transfer"

I am getting this error whenever I change one query string variable.
For ex: If in querystring a=test say which is our default, it works.
but we use this variable to change look and feel of our website and
some of those values works but some gives this error whenever u do a
postback.
Please help me !!!!!
 
G

Gary Chamberlain

The ViewState is used in a postback. It shouldn't exist in an initial
request. So, the question is, how are you sending ViewState back and
changing the querystring at the same time?

Gary
 
J

Justin Dutoit

Or you might want to try EnableViewStateMac=false in the Page directive ...

Justin
 
S

Siddhartha Jain

Hi Guys,
The page does not fail on initial load but if fails when I do a post
back. That querystring variable only changes at sessionstart.
Also the EnableViewStateMac should be set to true as I am using the
default. I didnt want to change it as I have read that changing it to
false may result in hacking the website. Please tell me more about it.

Thanks a lot for all your help.
-Siddhartha.
 

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