ibrahim ibrahim - 1 month ago 7
Vb.net Question

how to access to properity in usercontrol from html

i have public property in user control and i need access to this property from HTML for parent for this user control

Public Property ActorID As Integer
Set(value As Integer)
ViewState("ActorID") = value
End Set
Get
Return ViewState("ActorID")
End Get
End Property


<uc3:Hos_Applicants ID="Hos_Applicants1" runat="server" />

Answer
<uc3:Hos_Applicants ID="Hos_Applicants1" runat="server" ActorID="2" />

you can access to property and set value in user control from parent asp page