在GridView for ASP.NET中显示文件和文件夹 [英] Displaying Files and Folders in a GridView for ASP.NET

查看:152
本文介绍了在GridView for ASP.NET中显示文件和文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个列出文件夹,子文件夹及其文件的应用程序。用户必须能够查看和下载文件名。这些文件将以字节格式存储在数据库中。我已经制作了一张图片,显示了应用程序必须能够执行的操作:



点击这里



1.列出目录

2.列出文件和子目录

3.点击它时下载文件





可以使用gridview完成,或者可以使用gridview我习惯这样做?



先谢谢..!

I want to make an application that lists folders, subfolders and it's files. The users must be able to view and download the file name. The files will be stored in a database as byte format. I've made an image that shows what the application must be able to do:

Check Here

1. list the directories
2. list the files and subdirectories
3. download the file when you click on it


Could this be done using a gridview, or what can I use to do this?

Thanks in advance..!

推荐答案

使用Tree View,相关文章:

ASP.NET树视图 - 带有自定义树节点 [ ^ ]

ASTreeView - 免费的ASP.NET TreeView控件 [ ^ ]

ASP.NET TreeView Control&客户端浏览器 [ ^ ]



Use Tree View, related articles :
ASP.NET Tree View - with customized tree nodes[^]
ASTreeView - Free ASP.NET TreeView Control[^]
ASP.NET TreeView Control & the Client's Browser[^]

引用:

I不想要树视图,我只需要像Windows资源管理器一样

I don't want tree view, I just need like windows explorer





然后你最好检查你复制图像的文章的源代码。

http://www.4guysfromrolla.com/articles/090110-1.aspx [ ^ ]

Code Zip file [ ^ ]


这篇关于在GridView for ASP.NET中显示文件和文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆