Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Modifying Page ViewState in a Method
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00946814
Message ID:
00946878
Views:
14
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform