如果继承 Microsoft.Web.UI.WebControls.TreeView 那应该是一个 Customer ControlTreeView本身是一个Customer Control.

解决方案 »

  1.   

    you can derive from any class as long as it is not sealed
      

  2.   

    那怎么做一个Customer Control
    继承了以后在web上又怎么用呢?
      

  3.   

    TreeView可以作为你的用户控件的一个成员对象
      

  4.   

    如果我想直接用,而不是做为用户对象的一个成员对象.
    各位大虾,我刚刚接触ASP.NET,对于很多概念还不是很清楚,希望大家多多指教.
      

  5.   

    see
    Authoring Custom Controls
    http://samples.gotdotnet.com/quickstart/aspplus/doc/webctrlauthoring.aspxone thing to remember is that you need to have a namespace for your Control
      

  6.   

    http://chs.gotdotnet.com/quickstart/aspplus/doc/webctrlauthoring.aspx