C# asp.net 中的文件夹对话框

发布于 2024-08-31 09:56:01 字数 184 浏览 2 评论 0原文

asp.net中有文件夹对话框控件吗?
我希望用户按下按钮并选择一个文件夹(而不是文件)。我尝试以这种方式使用输入:

 <input type="file" runat="server" id="d" />

但它使我能够浏览文件而不是文件夹。
有什么帮助吗?

is there a folder dialog control in asp.net?
i want the user to press a button and select a folder (not a file). i tried using the input in this way:

 <input type="file" runat="server" id="d" />

but it enabled me to browse a file and not a folder.
any help?

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

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

发布评论

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

评论(2

挽手叙旧 2024-09-07 09:56:01

你必须构建这样的东西;使用 AJAX 控制工具包模态弹出扩展器向用户显示窗口,然后自己构建 UI。显示根文件夹和子文件夹。也许用树视图来表示这一点。只要您谈论的是 Web 服务器上的文件夹,这是可行的。

如果您正在谈论客户端计算机上的文件夹,则需要 active X 或 silverlight。所以这取决于你在寻找什么。

HTH。

You would have to build something like this; use the AJAX control toolkit modal popup extender to display the window to the user, then build the UI yourself. to show the root and subfolders. Maybe a treeview to represent this. It's doable, as long as you are talking folders on the web server.

If you are talking folder on the client's machine, you would need active X or silverlight. So it depends on what you are looking for.

HTH.

青丝拂面 2024-09-07 09:56:01

HTML 中没有本地方法可以执行此操作 - 您必须编写一些自定义内容(可能使用 ActiveX 或 Silverlight)来执行此操作。

There is no native way to do this in HTML - you would have to write something custom (perhaps using ActiveX or Silverlight) that would allow you to do this.

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