如何使用asp.net从目录中查找文件名 [英] how to find file name from directory using asp.net

查看:166
本文介绍了如何使用asp.net从目录中查找文件名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我想在文本框中检索文件名,格式包括doc,xls,pdf,jpeg,png,vedio,txt等特定格式目录,然后将其存储到数据库。



之后,当我点击gridview中的任何一行时,该文件将打开。



非常紧急。



这是我的要求



归档所有类型



通过电子邮件或扫描收到的文件



到工作或交易

Hi all,

I want to retrieve file name in text box with formats like doc,xls,pdf,jpeg,png,vedio,txt etc from particular directory and then store it to database.

After that when i click any row in gridview that file will open.

its very urgent.

This is my requirement

for archiving all type of

documents that are received by emails or scanned pertaining

to a job or transaction

推荐答案

您想使用 DirectoryInfo.GetFiles()方法。古尔是你的朋友。
You want to use the DirectoryInfo.GetFiles() method. Goole is your friend.


这篇关于如何使用asp.net从目录中查找文件名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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