cited
OpenFileDialog is for windown forms
application, I am not sure what you intended to do whether you want to
upload file or do other thing.
Simply you can use file upload, If you want to dialog box to open, you can use either HTML input file type or <asp:FileUpload
ex:
<input type="file" id="fleUpload" runat="server" />
or
<asp:FileUpload ID="FileUpload1" runat="server" /></div>
Happy coding

本文介绍了如何在Web应用程序中使用FileUpload控件实现文件上传功能。提供了两种使用方法:一种是通过HTML的输入类型为文件的方式,另一种是使用ASP.NET提供的FileUpload控件。
1万+

被折叠的 条评论
为什么被折叠?



