Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Modifying Page ViewState in a Method
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00946814
Message ID:
00947124
Vues:
16
Hi Rod,

:-) "Manipulate" = add/remove items into/from it ( i.e. the Page ViewState ) like we normally do at the form level. In this case I was just trying to encapsulate the addition of a particular ViewState item in a static method to centralize and encapsulate the functionality.

Danny suggested trying to access the ViewState items in the method even though it doesn't show up in Intellisense in the method. But I feel pretty uneasy about doing this as it seems to violate encapsulation or something. Yes-no?

>I am kind of interested.
>
>Why do you want to manipulate the view state.
>
>If you do your server will probably throw it out anyway. The View State gunk you see is encrypted by the server.
>
>
>Rodman
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform