How to inherit from Control, rather than UserControl?

后端 未结 2 1822
天涯浪人
天涯浪人 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:53

    Try inherting from WebControl,then use Register instead of Control. Similar to this: http://www.codeproject.com/Articles/2748/Building-an-ASP-NET-custom-web-control-a-textbox-a

提交回复
热议问题