A
ajaymehra
Hi all,
I have a class file called Properties.vb in which I define a publi
property as follows
-----------------------------------------------------------
Public Class Properties
Private CalSelectedDate As Date = Now()
Public Property CalSelDate() As Date
Get
Return CalSelectedDate
End Get
Set(ByVal Value As Date)
CalSelectedDate = Value
End Set
End Property
End Class
-----------------------------------------------------------
Now I have Page1.aspx where I create an object of Properties class an
set the property value.
I also have Page2.aspx where I create another object of Properies clas
and try to access the property value - But I dont get it.
Im guessing this is because each object I create has its own memor
space...
So how would I be able to accomplish this ? How do I get values fro
another class ?
TIA,
A
ajaymehr
I have a class file called Properties.vb in which I define a publi
property as follows
-----------------------------------------------------------
Public Class Properties
Private CalSelectedDate As Date = Now()
Public Property CalSelDate() As Date
Get
Return CalSelectedDate
End Get
Set(ByVal Value As Date)
CalSelectedDate = Value
End Set
End Property
End Class
-----------------------------------------------------------
Now I have Page1.aspx where I create an object of Properties class an
set the property value.
I also have Page2.aspx where I create another object of Properies clas
and try to access the property value - But I dont get it.
Im guessing this is because each object I create has its own memor
space...
So how would I be able to accomplish this ? How do I get values fro
another class ?
TIA,
A
ajaymehr