Create a usercontrol instance programmatically in ASP.NET

后端 未结 3 808
不知归路
不知归路 2021-01-07 04:58

I have a UserControl that I need to add dynamically. I tried to follow this MSDN article, but I\'m not having any success.... http://msdn.microsoft.com/en-us/library/c0az2h8

3条回答
  •  鱼传尺愫
    2021-01-07 05:32

    I don't think you've placed the control in your code behind. You may well have created the reference, but do you have a tag such as anywhere in your aspx?

提交回复
热议问题