Viewstate Problem URGENT!!!!!

  • Thread starter Thread starter Siddhartha Jain
  • Start date Start date
S

Siddhartha Jain

Hi Guys,
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 !!!!!

Thanks in advance
-Siddhartha
 
Siddhartha Jain said:
"The viewstate is invalid for this page and might be corrupted." I

but we use this variable to change look and feel of our website and

Are you creating controls dynamically?

If so, you have to always create all of the controls in the same order on
every post, or else the viewstate won't work properly.

Kelly
 
Hi Siddharha,

Are you doing clientscript also?

But maybe it is better to tell you that probably the newsgroup

microsoft.public.dotnet.framework.aspnet is better for this kind of
questions.

Cor
 
Hi Cor,
Wat do u mean by clientscript. There are some places I am using
javascript and also client side validation.
Thanks for letting me know about the
microsoft.public.dotnet.framework.aspnet newsgroup. I was not sure and
thats why posted in general category.

Thanks
Siddhartha.
 
Back
Top