Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Disabling viewstate on a form
Message
De
09/06/2010 23:14:01
 
 
À
09/06/2010 12:17:39
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 9.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01468039
Message ID:
01468225
Vues:
59
>Ah, looks like I was wrong. The _VIEWSTATE field will always be present - but only contain minimal information it EnableViewState is false.
>This explains * what* it contains but not *why* : http://scottonwriting.net/sowBlog/archive/0000/00/00/162971.aspx
>You can also make the content completely empty by:
protected override void SavePageStateToPersistenceMedium(object viewState){}
>protected override object LoadPageStateFromPersistenceMedium(){return null;}
but I don't see the point...
>Probably removing the 'runat=server' would also suppress it ?

I finally got it to work. It seems to have been related to a syntax situation.
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