如何在asp.net中获取选定的文件路径? [英] How can i get Selected file path in asp.net?

查看:48
本文介绍了如何在asp.net中获取选定的文件路径?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我正在使用fileupload1来选择我想要上传服务器的文件。

上传到服务器之前,我需要显示我选择的文件列表。

在该列表中,它具有源路径,文件名,大小等字符...

ex:我选择的文件来自C:\New Folder\test1.txt

所以在该列表中将显示

C:\New文件夹是源路径

test1是文件名




有谁知道我如何获得所选文件的源路径?



谢谢



TONY

解决方案

Fileupload有一个名为FileName的属性,它给出了选择的文件路径。



请参阅 - http ://msdn.microsoft.com/en-us/library/aa479405.aspx [ ^ ]

Hi all experts,

I'm using fileupload1 to select files i want to upload server.
Before upload to server, I need to display list of files that i selected.
In that list, it has col like Source Path,FileName,Size...
ex: I selected file from C:\New Folder\test1.txt
so in that list will be display
C:\New Folder is source Path
test1 is Filename


Does anybody know how i can get source path of selected file?

Thanks

TONY

解决方案

Fileupload has a property named FileName which gives the selected file path.

Refer this - http://msdn.microsoft.com/en-us/library/aa479405.aspx[^]


这篇关于如何在asp.net中获取选定的文件路径?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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