A good friend of mine gave me a heads-up on this one. Remembering that each page you create is a class you can add properties to it and hold them in ViewState.
Private _PageProp As Integer
Public Property PageProp() As Integer
Get
Return ViewState(_PageProp)
End Get
Set(ByVal value As Integer)
ViewState(_PageProp) = value
End Set
End Property
e.g.
Me.PageProp = 1
No comments:
Post a Comment