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:
00946878
Vues:
13
Hi Danny,

Thanks for the reply. Hmm, even though I tried passing the Page by ref (C#), the ViewState property still does not show up in Intellisense. Must have something to do with being a protected prop ...

Bill

>
>Below is an example of how to setup such a routine in VB.net ... I'm not for sure what the syntax would be in C#, but I bet Kevin or Bonnie would know.
>
>
>Public Sub RoutineName(ByRef pgSender As System.Web.UI.Page)
>	pgSender.ViewState("Test") = 1
>End Sub
>
>
>The important key there is ByRef so that you modify the ViewState of that page rather than a temp copy of the page.
>
>Hope that helps...
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform