Hi,
I am trying to set the value of a user controls property from another user control.
I am using the following code to set the property:
stage = Page.FindControl(_NextStage)
stage.ctID = intctID
The control referenced as "stage" exists and is on the same parent page.
I am getting the following compliation error:
BC30456: 'ctID' is not a member of 'System.Web.UI.Control'.
I have declared the ctID properyt with the following code:
Private _ctID as integer
Public Property ctID as integer
Get
return _ctID
End Get
Set
_ctID = value
viewstate("VS_ctID") = value
lblTest.Text = value.toString()
End Set
End Property
What have I missed here, do I have to do something different when declaring user control properties to be able to access them from other controls?
Cheers
Glosh