web页面调用SaveFileDialog问题
请问,如何在网页中调用SaveFileDialog。当点击button1时,调用SaveFileDialog
我写的代码如下:
Dim sfdPath As New System.Windows.Forms.SaveFileDialog
sfdPath.ShowDialog()
txtPath.Text = sfdPath.FileName
在运行时点击button1时提示:
在可以调用 OLE 之前,必须将当前线程设置为单线程单元(STA)模式。请确保您的 Main 函数带有 STAThreadAttribute 标记。 只有将调试器附加到该进程才会引发此异常。
请问如何处理