Viewstate Problem URGENT!!!!!

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
 
K

Kelly Leahy

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
 
S

Siddhartha Jain

Thanks for a prompt reply Kelly..
No I am not creating controls dynamically.
 
C

Cor

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
 
S

Siddhartha Jain

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.
 

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