471,337 Members | 1,329 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,337 software developers and data experts.

set public property in another web user control

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
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"


Jul 21 '05 #1
0 878

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by DC Gringo | last post: by
6 posts views Thread by Paperback Writer | last post: by
4 posts views Thread by louise raisbeck | last post: by
4 posts views Thread by Jon Paal | last post: by
9 posts views Thread by J055 | last post: by
1 post views Thread by John Kotuby | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.