D
DC Gringo
I have two user controls in a web form...user control 1 contains just a
label, but I want to set its value from another web user control (2) in the
same web form. I am able to set the value from the web form, but not from
the user control 2...what am I doing wrong?
This is in the web form:
<uc1:statusMessage id="StatusMessage1" runat="server"></uc1:statusMessage>
This is in the first user control 1:
Public theMessage As String
Public Property statusMessage() As String
Get
lblStatusMessage.Text = theMessage
End Get
Set(ByVal Value As String)
theMessage = Value
End Set
End Property
This is in the user control 2:
Public WithEvents statusMessage1 As statusMessage
statusMessage1.theMessage = "No communities selected"
_____
DC G
label, but I want to set its value from another web user control (2) in the
same web form. I am able to set the value from the web form, but not from
the user control 2...what am I doing wrong?
This is in the web form:
<uc1:statusMessage id="StatusMessage1" runat="server"></uc1:statusMessage>
This is in the first user control 1:
Public theMessage As String
Public Property statusMessage() As String
Get
lblStatusMessage.Text = theMessage
End Get
Set(ByVal Value As String)
theMessage = Value
End Set
End Property
This is in the user control 2:
Public WithEvents statusMessage1 As statusMessage
statusMessage1.theMessage = "No communities selected"
_____
DC G