xp系统,.net框架是1.1的
treeview安装是560k大的那个
装上treeview,在vs.net下添加了node之后,无法正常显示树,只能看到root。
运行页面后,无法显示树状图,只出来一串所有node的text。
比如:node1 node2 node3 node4 node5
请高手指点。

解决方案 »

  1.   

    htc路径不对,参考
    http://www.microsoft.com/china/msdn/archives/library/dnaspp/html/aspnet-usingtreeviewiewebcontrol.asp#aspnet-usingtreeviewiewebcontrol_topic2
      

  2.   

    htc要放在根站点下,如
    C:\Inetpub\wwwroot\webctrl_client\1_0下
      

  3.   

    使用说明=====================================
    Internet Explorer Web Controls README
    =====================================
    Last updated: 1/14/2002Thank you for downloading the IE Web Controls source code release!  The Src 
    folder contains the source code for the IE MultiPage, ToolBar, TreeView, and 
    TabStrip controls, along with related base classes and design-time support.To build the IE Web Controls:1.  Make sure you have installed the .NET Framework SDK v1.0 or v1.1
    2.  Run Build.bat, which will create a build folder in this directory.  
        The build folder contains Microsoft.Web.UI.WebControls.dll and a 
        Runtime directory of supporting files.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
        
    For additional documentation and samples visit:
    http://msdn.microsoft.com/library/default.asp?url=/workshop/webcontrols/webcontrols_entry.asp
      

  4.   

    把解压后的目录webctrl_client拷贝到X:\Inetpub\wwwroot\就好了