Hi there I have a control called Search and in that control I have a property such as:
In my main page I first have to reference the control
Public search1 As New Search
Then in my page load event I want to set the property, such as
However the property doesn't hold the value so the return value is empty. Any ideas?
Code:
Dim _Source As String
Public Property Source() As String
Get
Return _Source
End Get
Set(ByVal Value As String)
_Source = Value
End Set
End Property
In my main page I first have to reference the control
Public search1 As New Search
Then in my page load event I want to set the property, such as
Code:
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
search1.source = "../MyPage.aspx"
End Sub
However the property doesn't hold the value so the return value is empty. Any ideas?