Web服务器目录列表 [英] Web Server directory listing

查看:111
本文介绍了Web服务器目录列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello world,



如标题所示,我需要帮助才能在我的网络服务器中编写一小段代码(C#)



看起来应该是这样的:

如果客户访问http://服务器地址/目录,那么他们可以看到如下内容:

http://roshanbh.com.np/wp-content/uploads/ 2008/03 / directory-listing.gif [ ^ ](来自互联网的示例图片)



希望你明白并且可以帮助我....

解决方案

你有没有在Google上搜索任何东西?



前几个结果:

< a href =http://aspsnippets.com/Articles/Display-list-of-files-from-Server-folder-in-ASPNet-GridView.aspx> http://aspsnippets.com/Articles/Display-list -of-文件 - 从 - 服务器的文件夹功能于ASPNET,GridV iew.aspx [ ^ ]

http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/7758e7a8-e063-4eec-a6c1-c76a59d02852/ [ ^ ]

http://www.codingforums.com/showthread.php?t = 174233 [ ^ ]

Hello world,

as the title says, I need help for writing a small piece of code in my webserver (C#)

It should look like this:
If a client visits http://server address/Directory , then they can see something like this:
http://roshanbh.com.np/wp-content/uploads/2008/03/directory-listing.gif[^] (example pic from Internet)

Hope you understood and can help me....

解决方案

Did you ever search anything on Google?

First few results:
http://aspsnippets.com/Articles/Display-list-of-files-from-Server-folder-in-ASPNet-GridView.aspx[^]
http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/7758e7a8-e063-4eec-a6c1-c76a59d02852/[^]
http://www.codingforums.com/showthread.php?t=174233[^]


这篇关于Web服务器目录列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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