【问题标题】:How to browse the file in asp.net without using the FileUpload and use the button to browse the folder?如何在不使用 FileUpload 的情况下浏览 asp.net 中的文件并使用按钮浏览文件夹?
【发布时间】:2017-09-27 10:35:16
【问题描述】:

我想使用浏览按钮浏览驱动器中的文件夹,而不是使用 asp.net 中的文件上传工具。

【问题讨论】:

  • 如果不想使用fileupload控件(不知道为什么),需要用

标签: c# asp.net


【解决方案1】:

用途:

<input name="myFile" type="file" />

提交后,您可以像这样检索文件内容:

Request.Files["myFile"]

【讨论】:

    猜你喜欢
    • 2015-08-06
    • 1970-01-01
    • 1970-01-01
    • 2011-04-23
    • 2012-09-04
    • 2017-09-16
    • 2010-09-10
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多