Ask a Question related to ASP.NET General, Design and Development.
-
Chiu Hung Jung #1
MsgBox Error
Hi, everyone
I use MsgBox("message") function, but error as follows:
It is invalid to show a modal dialog or form when the application is
not running in UserInteractive mode. Specify the ServiceNotification
or DefaultDesktopOnly style to display a notification from a service
application.
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.
Exception Details: System.InvalidOperationException: It is invalid to
show a modal dialog or form when the application is not running in
UserInteractive mode. Specify the ServiceNotification or
DefaultDesktopOnly style to display a notification from a service
application.
I don't understand, how can I solve the problem.
Thanks for help!
CHJ
Chiu Hung Jung Guest
-
msgbox title
In my ASP script I call Javascript for a msgbox after the user has submitted the form of their resume information. I saw this example as a way to... -
MSGBOX Example
I am trying to get a message box to work in a web form. The code looks right But when I browse the form I get It is invalid to show a modal... -
MsgBox comand before New Record
Hi I hope you can help. I'm trying to set up a code so that if one field has "Email" in it then the "email address" field needs an email address.... -
Grid msgbox?
I found it. private void grd_DeleteCommand(object source, System.Web.UI.WebControls.DataGridCommandEventArgs e) {... -
msgbox?
Try adding this code to your Page_Load event: btnSave.Attributes.Add("OnClick", "return confirm('Are you sure you want do save?');"); Good... -
abacnet #2
Re: MsgBox Error
Hello,
This is an ASP.NET newsgroup and I guess you have a web application.
MsgBox("message") is mainly used for a windows desktop application. If you
want to show a pop up message on a web application you can use a Javascript
function.
"Chiu Hung Jung" <hj@fortunengine.com.tw> wrote in message
news:uGFRIoiWDHA.388@TK2MSFTNGP10.phx.gbl...> Hi, everyone
>
> I use MsgBox("message") function, but error as follows:
>
> It is invalid to show a modal dialog or form when the application is
> not running in UserInteractive mode. Specify the ServiceNotification
> or DefaultDesktopOnly style to display a notification from a service
> application.
> Description: An unhandled exception occurred during the execution of
> the current web request. Please review the stack trace for more
> information about the error and where it originated in the code.
>
> Exception Details: System.InvalidOperationException: It is invalid to
> show a modal dialog or form when the application is not running in
> UserInteractive mode. Specify the ServiceNotification or
> DefaultDesktopOnly style to display a notification from a service
> application.
>
> I don't understand, how can I solve the problem.
>
> Thanks for help!
>
>
> CHJ
>
>
abacnet Guest



Reply With Quote

