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.