Programmatically setting property values in a usercontrol in vb.net
I am programatically creating instance of usercontrol as shown below
Dim uc As Control
uc = Me.LoadControl("~/Controls/DigitalSign.ascx")
Me.Controls.Add(uc)
I have two public properties in my usercontorl like clerkName and RespName. How can I set those values in the abo开发者_如何学Cve code. Intellisense is not showing ClerkName and respName Properties.
something like this should work
Dim uc As DigitalSign
uc = CType(Me.LoadControl("~/Controls/DigitalSign.ascx"), DigitalSign)
Me.Controls.Add(uc)
精彩评论