首页从Microsoft下载了IEWebControls.exe,安装好。
之后创建一个SimpleTreeView.aspx 内容如下:
-------------------------------------------------
<%@ Page Language="C#" %>
<%@ Register TagPrefix="IE" Namespace="Microsoft.Web.UI.WebControls" Assembly="Microsoft.Web.UI.WebControls" %>
<%@ import namesapce="Microsoft.Web.UI.WebControls" %><html>
<head>
</head>
<body>
    <form runat="server">
        <IE:TREEVIEW runat="server">
            <TREENODE text="ASP.NET Books">
                <TREENODE text="ASP.NET Unleashed" />
                <TREENODE text="ASP.NET Tips, Code, and Tutorials" />
            </TREENODE>
        </IE:TREEVIEW>
    </form>
</body>
</html>
运行后出现如下:--------------------------------------------------------------------------------
“/”应用程序中的服务器错误。
--------------------------------------------------------------------------------分析器错误 
说明: 在分析向此请求提供服务所需资源时出错。请检查下列特定分析错误详细信息并适当地修改源文件。 分析器错误信息: 找不到文件或程序集名称“Microsoft.Web.UI.WebControls”,或找不到它的一个依赖项。源错误: 行: 2
行 1:  <%@ Page Language="C#" %>
行 2:  <%@ Register TagPrefix="IE" Namespace="Microsoft.Web.UI.WebControls" Assembly="Microsoft.Web.UI.WebControls" %>
行 3:  <%@ import namesapce="Microsoft.Web.UI.WebControls" %>
行 4:  <script runat="server">
如何解决?谢谢

解决方案 »

  1.   

    添加对
    Microsoft.Web.UI.WebControls.dll的引用
      

  2.   

    如何添加Microsoft.Web.UI.WebControls.dll的引用?
      

  3.   

    WebControls Version 1.0是否和.net版本有关。。我用的是.net1.1
      

  4.   

    在VS.net中添加Microsoft.Web.UI.WebControls.dll的引用
      

  5.   

    解决方案管理器 项目  下有个引用目录图标, 右键 - 添加新引用,选择你安装路径下的 
    Microsoft.Web.UI.WebControls.dll
      

  6.   

    现在可以运行了。
    不过。。只显示文本。。没显示树状视图。。比如上面的例子。运行后在IE里只看到如下:
    ---------------------------------------------------------------------------ASP.NET Books ASP.NET Unleashed ASP.NET Tips, Code, and Tutorials
      

  7.   

    你有没有把webctrl_client文件夹复制到wwwroot目录下呢?下边有说明,你看看:To run the IE Web Controls:1.  Copy the contents of the Runtime directory to the webctrl_client\1_0
        directory under your top-level site directory.  For example, if your 
        site root is c:\Inetpub\wwwroot, type this at the command prompt:    xcopy /s /i .\build\Runtime c:\Inetpub\wwwroot\webctrl_client\1_0 /y    This will create the following directory structure under the site:      /webctrl_client/1_0
            MultiPage.htc
            TabStrip.htc
            toolbar.htc
            treeview.htc
            webservice.htc
            webserviced.htc
            [images]
            [treeimages]2.  Create a new web application in IIS and copy the contents of the
        samples directory to this application directory.  For example:    xcopy /s /i .\samples c:\Inetpub\wwwroot\sampleapp /y3.  Create a /bin subdirectory for the application and copy the file
        Microsoft.Web.UI.WebControls.dll to this directory.    The contents of the application will be as follows:      /sampleapp
            multipage.aspx
            state_city.xml
            tabstrip.aspx
            toolbar.aspx
            treeview.aspx
            treeview_bound.aspx
            /bin
              Microsoft.Web.UI.WebControls.dll4.  Request the sample pages from your Internet Explorer web browser, for
        example: http://localhost/sampleapp/multipage.aspx
      

  8.   

    只显示字体。。没有树状的图片呀。。什么原因
    只显示:
    -------------------------------------------------------------------
    ASP.NET Books ASP.NET Unleashed ASP.NET Tips, Code, and Tutorials