用vs2005打开源程序,运行时所用用到msgbox地方都显示如下错误信息:
Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application.
但同样的程序我通过iis配置后,直接运行站点(http://leo/xx)就没有这个错误。这个问题应该怎么解决??
Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application.
但同样的程序我通过iis配置后,直接运行站点(http://leo/xx)就没有这个错误。这个问题应该怎么解决??
解决方案 »
- 求兄弟们解答下这个问题
- asp.net母板页关于CentenPlaceHolder控件的布局
- js高手们,这个是什么意思,我是说用法怎么用
- 高分求助:请教高手关于ajax的'Sys'未定义的错误(情况有点复杂)
- 为什么事件处理函数的入口总是有两个Object和EventArgs类型?
- 已经糊涂了,100分求救`
- 是什么病毒引起部分文件夹下的文件丢失,但文件夹还在,系统文件丢失后,系统就崩溃?你不知道了不要紧,告诉我一个好的反病毒网站也可
- 请教一个关于跳页传字符串的问题
- 如何将DataGrid页面加载时就处于编辑状态??
- javascript在treeview中的使用
- 应该如何学asp?
- 关于页面效率的问题
<script>
alert("ok")
</script>
Private Sub AskAndToSave()
If MsgBox("内容被修改!是否要保存?", MsgBoxStyle.YesNo, gstNSS) = vbYes Then
StoreTextToResultset()
Else
DataSaved = False
End If
End Sub
我觉得这样写应该没有问题啊,况且用vs2005代开源程序运行也没问题啊。急等回复?
<script>
alert("ok")
</script>
这种模式