I have to share this with everyone. For about 5 days I have been working on
converting an old ASP 1.1 app that I built about 5 years ago to 2.0 and
putting a new HTML face on it at the same time.
Everytime a button was pushed on the new app I got "invalid viewstate"
issues.
Even on the 1.1 app (just putting in the new HTML decorations) .... SAME
thing
I was at my wits end - last night I figured it out and HAVE to share. When
I was putting on the new face this is what I was doing. I created a new
ASPX page and copied my backend code over just like it was. On the front
end I took everything between the form tags and put it inside and then added
any relevant controls. The problem was ultimately in the FORM tag. The old
form tag contained "action="url of page I was on" but in the new page this
was missing from the FORM tag. BELIEVE it or not ... THAT was the problem
I always assumed that a page inherintly posted to itself and adding the
action was not really relevant unless it was posting to another page.
Anyways I spent so much time and was so amazed that this was the answer that
I had to let anyone know that may be facing a similar problem.
Ronda Pederson.
[Non-text portions of this message have been removed]
.