在 ASP.NET 2.0 中,我可以有一个按钮来浏览客户端文件夹并选择路径(而不是文件)吗?

发布于 2024-07-11 16:54:55 字数 130 浏览 5 评论 0原文

我已经使用隐藏文件上传控件来浏览文件并获取文件路径,但没有真正上传它。

我的问题是,在 ASP.NET 中是否有一种方法,创建一个文件夹浏览按钮,单击该按钮时,仅浏览客户端文件系统,并且用户可以单击路径并选择该路径而不是文件?

I already used a hidden file upload control to browse file and grab the file path, without really uploading it.

My question is, is there a way in ASP.NET, create a folder browse button, when it is clicked, just to browse client file system, and user can click the path and choose that path not file?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

熊抱啵儿 2024-07-18 16:54:55

不,您不能使用映射到 HTML 控件的标准 ASP.NET 控件。 如果您使用 Flash、Silverlight 或 Java 小程序,这可能是可能的。

No, you can't do with standart ASP.NET controls which map to HTML controls. Probably it's possible if you are using Flash, Silverlight or Java applets.

哽咽笑 2024-07-18 16:54:55

不幸的是,没有,唯一与文件相关的 HTML 控件是文件选择器 ()。

Unfortunately no, the only file-related HTML control is the file picker (<input type="file">).

酒解孤独 2024-07-18 16:54:55

使用 Flash 执行此任务并通过 JS 调用此操作

Use Flash for this task and invoke this actions via JS

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文