如何在asp.net Web应用程序中打开openfiledialog框。 [英] How to open openfiledialog box in asp.net Web Application.
本文介绍了如何在asp.net Web应用程序中打开openfiledialog框。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个应用程序,我需要在单击按钮时打开文件对话框。这是一个WEB应用程序。
我该怎么办。我不想使用常规的asp:fileupload控件。
I have a application where I need to open a file dialog box when clicked on the button. This is a "WEB APPLICATION".
What should I do. I don't want to use the regular asp:fileupload control.
推荐答案
你不能。 ASP.NET没有OpenFileDialog控件。为什么不使用asp:fileupload控件?
You can't. There is no OpenFileDialog Control for ASP.NET. Why don't you use asp:fileupload control?
解决方案
你可以隐藏FileUpload
控制和按钮点击,只需触发点击()
事件。
演示
[演示]按钮上的打开文件选择框单击 [ ^ ]
Solution
You can hide theFileUpload
Control and on Button Click, just trigger theclick()
Event.
Demo
[Demo] Open File Selection Box on Button Click[^]
这篇关于如何在asp.net Web应用程序中打开openfiledialog框。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文