可能重复: ASP.NET自定义控件 - 复合材料
如何制造和使用复合控件在asp.net?
How to make and use composite control in asp.net?
一个复合控件是一个控件的由的一些子控件(这是通过重写加入的CreateChildControls
法)。有关它们的详细文章见 MSDN:一个速成班ASP.NET控件开发:构建复合控件
A composite control is a control that's composed of some child controls (which are added by overriding CreateChildControls
method). For a detailed article on them see MSDN: A Crash Course on ASP.NET Control Development: Building Composite Controls