I have two controls in a custom module. Control 1 is view. Control2 is search. User selects value on Control2 and I want to update Control1(View). I cannot find syntax to change values on Control1 from Control2. The following is function on Control1 that is called from Control2 after pageInit and load on Control1. I have tried many many ways to findControl but all fail.
'Function on Control1 called from Control2 after Control1 PageInit/load:
Public Function loadFormValues(ByVal intValue As Int32)
Dim objControl as Control1 = Page.FindControl("Control1")
Dim tb As New TextBox
tb = objControl.FindControl("tbsecure_lastname")' fails at finding textbox on Control1
tb.Text = intValue
End Function
Thank you for any assistance