J
Just Me
The most likely cause is that you lost your variable during postback. You
need to persist the member variable using viewstate.
If you click a button on the web page, you will loose whatever private
member variables you have unless you store them. You can restore them on the
load event for the control and set the viewstate when you set the Property
of of the control.
'//On_Load
If Postback then
myVariableName = Ctype(viewstate("m_PageTitle"), string)
End If
'//Modified Property
Private m_PageTitle as String
Public Property PageTitle As String
Get
Return m_PageTitle
End Get
Set
m_PageTitle = Value
viewstate( "MyVariableName") = m_PageTitle
End Set
End Property
HTH
need to persist the member variable using viewstate.
If you click a button on the web page, you will loose whatever private
member variables you have unless you store them. You can restore them on the
load event for the control and set the viewstate when you set the Property
of of the control.
'//On_Load
If Postback then
myVariableName = Ctype(viewstate("m_PageTitle"), string)
End If
'//Modified Property
Private m_PageTitle as String
Public Property PageTitle As String
Get
Return m_PageTitle
End Get
Set
m_PageTitle = Value
viewstate( "MyVariableName") = m_PageTitle
End Set
End Property
HTH