开发者

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)
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜