当前位置:编程学习 > C#/ASP.NET >>

请问.net的WEB页面控件能否 浏览文件夹,调用FolderBrowserDialog类,请给出详细代码

我是这样用的,在WEB页面FolderBrowserDialog folderDialog = new FolderBrowserDialog();
// folderDialog.RootFolder = Environment.SpecialFolder.MyComputer;
// if ((folderDialog.ShowDialog() == System.Windows.Forms.DialogResult.OK))
// {
// this.DestionFileTextBox.Text = folderDialog.SelectedPath;
// }
但运行时报错,是这样的:在应用程序未以 UserInteractive 模式运行的情况下显示有模式对话框或窗体是无效的操作。请指定 ServiceNotification 或 DefaultDesktopOnly 样式,以显示服务应用程序发出的通知。 
怎么才能设置这个家伙
补充:.NET技术 ,  C#
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,