R
Raheel Hussain
hi,
can any body tell me why the variable loses its value,
i m actually declaring a variable which is public, and assigning a
values in Function1 and reading the values in Function2
following is a sample code for wht i m doing.
---------------------------------------
Public Class SupportRequest
Inherits System.Web.UI.Page
Dim Var1 As Integer
..
..
Private function Function1
Var1=1
End Function
Private Function Function2
'Var1 returns 0
Textbox1.text= Var1
End Function
End Class
can any body tell me why the variable loses its value,
i m actually declaring a variable which is public, and assigning a
values in Function1 and reading the values in Function2
following is a sample code for wht i m doing.
---------------------------------------
Public Class SupportRequest
Inherits System.Web.UI.Page
Dim Var1 As Integer
..
..
Private function Function1
Var1=1
End Function
Private Function Function2
'Var1 returns 0
Textbox1.text= Var1
End Function
End Class