想在自定义控件中增加一个容器,类似于向导控件,可以在该容器中增加别的控件

解决方案 »

  1.   

    [ToolboxData("<{0}:ControlName runat=server></{0}:DecorationFrame>"), ParseChildren(false), PersistChildren(true),]注意 ParseChildren(false), PersistChildren(true)
      

  2.   

    楼主可以看看这本书 
    Professional ASP.NET 2.0 Server Control and Component Development  
    源码下载 :http://www.wrox.com/WileyCDA/WroxTitle/productCd-0471793507,descCd-DOWNLOAD.html好像是在第4 或5章就 自定义控件中用到容器......
    这本书不错...