T
tfsmag
here is some test code i've set up trying to figure out how to share
variables between two different methods.
__________________________________________________
Public Class test
Inherits System.Web.UI.Page
#Region " Web Form Designer Generated Code "
#End Region
Public Shared testvar As String
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
testing.Text = testvar
End Sub
Sub makevar()
testvar = "this is a test"
DataBind()
End Sub
End Class
__________________________________________________
this is not working... can someone tell me what i'm doing wrong or if
this is even possible?
thanks,
Jeff
variables between two different methods.
__________________________________________________
Public Class test
Inherits System.Web.UI.Page
#Region " Web Form Designer Generated Code "
#End Region
Public Shared testvar As String
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
testing.Text = testvar
End Sub
Sub makevar()
testvar = "this is a test"
DataBind()
End Sub
End Class
__________________________________________________
this is not working... can someone tell me what i'm doing wrong or if
this is even possible?
thanks,
Jeff