ibrahim ibrahim - 1 year ago 70
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
Return ViewState("ActorID")
End Get
End Property

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

Answer Source
<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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download