I have created 2 server controls. The first creates a listbox and the intention is for the second control to pick up the value.
My second control has:
Dim myControl1 As New Control
Get
myControl1 = CType(FindControl("testListBox"), ListBox)
'myControl2 = myControl1.ID
If (Not myControl1 Is Nothing) Then
CurrSelectedVal = myControl1.ID
Else
Dim noval
noval = "Nothing"
End If
Return CurrSelectedVal
End Get
but this is obviously wrong.
Is it possible to retrieve the value?
My second control has:
Dim myControl1 As New Control
Get
myControl1 = CType(FindControl("testListBox"), ListBox)
'myControl2 = myControl1.ID
If (Not myControl1 Is Nothing) Then
CurrSelectedVal = myControl1.ID
Else
Dim noval
noval = "Nothing"
End If
Return CurrSelectedVal
End Get
but this is obviously wrong.
Is it possible to retrieve the value?