Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Invalid viewstate
Message
De
29/04/2008 10:15:10
 
 
À
29/04/2008 10:11:49
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01313593
Message ID:
01313803
Vues:
15
>I'm not sure how the EnableEventValidation setting would have any effect on a 'Invalid viewstate' error.
>
>Setting EnableViewState to false would certainly stop to error since there would be no ViewState to validate <s>. But whilst you may not need to maintain ViewState on this particular page I assume there are other pages where this is not so - and those pages are probably still prone to the invalid viewstate error.
>
>I'd suggest implementing the fixed key as recommended in the link Tracy supplied.

You are right. I immediately found out that only enableEventValidation was needed for me in Web.config as the other one should remain to its default. Otherwise, the state would not be maintained. So, I adjusted it back after. But, it is surprisingly interesting to see the difference in speed for the few minutes that I didn't have it. It would be nice to be able to get that speed and preserve that setting. I wonder if Microsoft could improve that algorythm in a future version so performance will be much better.

As for the invalid viewstate error, I will have to go with the fixed key as you both mentioned.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform