using System.Windows.Forms;
MessageBox.Show("bbbbb");请各位高手指点.
网页出错!结果如下:“/test1”应用程序中的服务器错误。
--------------------------------------------------------------------------------
在应用程序未以 UserInteractive 模式运行的情况下显示有模式对话框或窗体是无效的操作。
请指定 ServiceNotification 或 DefaultDesktopOnly 样式,以显示服务应用程序发出的通知。
MessageBox.Show("bbbbb");请各位高手指点.
网页出错!结果如下:“/test1”应用程序中的服务器错误。
--------------------------------------------------------------------------------
在应用程序未以 UserInteractive 模式运行的情况下显示有模式对话框或窗体是无效的操作。
请指定 ServiceNotification 或 DefaultDesktopOnly 样式,以显示服务应用程序发出的通知。
MessageBox是继承自form类。又没有引用进来,而且没有初始化对象。怎么用。。windows form 是应用软件了,release exe文件。asp.net web 是 web 应用程序 编译出来的是.dll文件。
如果想用提示框还是使用javascritp:alert("WarningText!");吧
如果WEB项目要用可以写个JS啊,
<script language='javascript'>alert('要输出的内容')</script>
在应用程序未以 UserInteractive 模式运行的情况下显示有模式对话框或窗体是无效的操作。
请指定 ServiceNotification 或 DefaultDesktopOnly 样式,以显示服务应用程序发出的通知。
public static DialogResult Show(
IWin32Window owner,
string text,
string caption,
MessageBoxButtons buttons,
MessageBoxIcon icon,
MessageBoxDefaultButton defaultButton,
MessageBoxOptions options
);