Hi. I need to access a user control's property from another user control's code behind.
I have a .aspx page with two user controls
<myControl:uc1 id="uc1" runat="server"/>
<myControl:uc2 id="uc2" runat="server"/>
uc1 has a textbox called eventDate. I want to set that property from uc2's code behind.
Currently in uc1's code behind (uc1.vb
) I have added:
Public Property myProp As String
eventDate.Text = Value
And then in uc2.vb
dim ctlEdit as control=page.loadcontrol("uc1.ascx")
I then try set the property thru
I don't think I am loading uc1 correctly in uc2.vb
I don't even know if I'm on the right track.
Any help is appreciated. Thank you in advanced.