How to inherit from Control, rather than UserControl?

后端 未结 2 1821
天涯浪人
天涯浪人 2020-12-07 03:22

I have an ASP.net control that inherits from UserControl:

File 1:

public partial class Controls_AllocationDuplicate : S         


        
2条回答
  •  佛祖请我去吃肉
    2020-12-07 03:47

    You try to make a custom control and not a user control in this case you can't use ascx file to hold your design but need to design them pragmatically.

提交回复
热议问题