找回密码
 立即注册
搜索
查看: 278|回复: 2

请教如何使用ASP.NET实现树形目录

[复制链接]

8

主题

86

回帖

122

积分

海星

积分
122
发表于 2003-11-2 10:25:54 | 显示全部楼层 |阅读模式
用asp.net(vb.net)做导航栏,想把类目录和其子类目录做成象资源管理器那样的树状目录。有什么控件或者方法、或者有这样功能的某个网站的源码吗? 谢了!

726

主题

7323

回帖

5966

积分

网站编辑

海盗船长

积分
5966
发表于 2003-11-6 15:20:51 | 显示全部楼层
asp.net中有一个控件IE Web Controls,你下载下来然后编译出来就可以用了
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 /y
3.  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.dll

4.  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/librar ... bcontrols_entry.asp
回复

使用道具 举报

8

主题

86

回帖

122

积分

海星

积分
122
 楼主| 发表于 2003-11-9 11:46:31 | 显示全部楼层
忽忽 多谢~!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|海浩社区

GMT+8, 2025-9-24 07:05 , Processed in 0.075391 second(s), 20 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表