473,322 Members | 1,562 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

msgbox

when I add a msgbox("hello")
it returns
"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. "

What should I do in order to make a msgbox work?
Thanks in advance
Nov 17 '05 #1
8 5220
Hi

pls post code that cause the error.

In addition, please explain what you wish to do.

I did some searching on goggle and found that this error
is usually resulted when an asp application is try to
open a message box.

Ravikanth[MVP]

-----Original Message-----
when I add a msgbox("hello")
it returns
"It is invalid to show a modal dialog or form when the application is notrunning in UserInteractive mode. Specify the ServiceNotification orDefaultDesktopOnly style to display a notification from a serviceapplication. "

What should I do in order to make a msgbox work?
Thanks in advance
.

Nov 17 '05 #2
Hi

pls post code that cause the error.

In addition, please explain what you wish to do.

I did some searching on goggle and found that this error
is usually resulted when an asp application is try to
open a message box.

Ravikanth[MVP]

-----Original Message-----
when I add a msgbox("hello")
it returns
"It is invalid to show a modal dialog or form when the application is notrunning in UserInteractive mode. Specify the ServiceNotification orDefaultDesktopOnly style to display a notification from a serviceapplication. "

What should I do in order to make a msgbox work?
Thanks in advance
.

Nov 17 '05 #3
The VB MsgBox function can not be used in a web application. It calls a
Windows API to display a Message Box on the machine on which the application
is running. ASP.Net is used to create web applications, where the users of
the applications are nowhere near the machine running the app. They are
looking at an HTML document in a web browser. If you want to pop up a
Message Box on the browser, you have to include JavaScript in your ASP.Net
page that does so on the client browser (something like: alert("Your
message");). To do this in ASP.Net, you would use
Page.RegisterStartupScript() in your CodeBehind. See the following SDK
article for details:

http://msdn.microsoft.com/library/de...ientsidesc.asp

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Big Things are made up of
Lots of Little Things.
"Music Lover" <mu***@my-heart.org> wrote in message
news:uf**************@TK2MSFTNGP12.phx.gbl...
when I add a msgbox("hello")
it returns
"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. "

What should I do in order to make a msgbox work?
Thanks in advance

Nov 17 '05 #4
The VB MsgBox function can not be used in a web application. It calls a
Windows API to display a Message Box on the machine on which the application
is running. ASP.Net is used to create web applications, where the users of
the applications are nowhere near the machine running the app. They are
looking at an HTML document in a web browser. If you want to pop up a
Message Box on the browser, you have to include JavaScript in your ASP.Net
page that does so on the client browser (something like: alert("Your
message");). To do this in ASP.Net, you would use
Page.RegisterStartupScript() in your CodeBehind. See the following SDK
article for details:

http://msdn.microsoft.com/library/de...ientsidesc.asp

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Big Things are made up of
Lots of Little Things.
"Music Lover" <mu***@my-heart.org> wrote in message
news:uf**************@TK2MSFTNGP12.phx.gbl...
when I add a msgbox("hello")
it returns
"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. "

What should I do in order to make a msgbox work?
Thanks in advance

Nov 17 '05 #5
Try this instead:
http://metabuilders.com/Tools/DialogWindow.aspx

--
Dana Coffey
Microsoft MVP - ASP.NET
www.aspforblondes.com
http://weblogs.asp.net/danac/
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:eU**************@TK2MSFTNGP12.phx.gbl...
The VB MsgBox function can not be used in a web application. It calls a
Windows API to display a Message Box on the machine on which the application is running. ASP.Net is used to create web applications, where the users of
the applications are nowhere near the machine running the app. They are
looking at an HTML document in a web browser. If you want to pop up a
Message Box on the browser, you have to include JavaScript in your ASP.Net
page that does so on the client browser (something like: alert("Your
message");). To do this in ASP.Net, you would use
Page.RegisterStartupScript() in your CodeBehind. See the following SDK
article for details:

http://msdn.microsoft.com/library/de...ientsidesc.asp
--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
http://www.takempis.com
Big Things are made up of
Lots of Little Things.
"Music Lover" <mu***@my-heart.org> wrote in message
news:uf**************@TK2MSFTNGP12.phx.gbl...
when I add a msgbox("hello")
it returns
"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. "

What should I do in order to make a msgbox work?
Thanks in advance


Nov 17 '05 #6
Try this instead:
http://metabuilders.com/Tools/DialogWindow.aspx

--
Dana Coffey
Microsoft MVP - ASP.NET
www.aspforblondes.com
http://weblogs.asp.net/danac/
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:eU**************@TK2MSFTNGP12.phx.gbl...
The VB MsgBox function can not be used in a web application. It calls a
Windows API to display a Message Box on the machine on which the application is running. ASP.Net is used to create web applications, where the users of
the applications are nowhere near the machine running the app. They are
looking at an HTML document in a web browser. If you want to pop up a
Message Box on the browser, you have to include JavaScript in your ASP.Net
page that does so on the client browser (something like: alert("Your
message");). To do this in ASP.Net, you would use
Page.RegisterStartupScript() in your CodeBehind. See the following SDK
article for details:

http://msdn.microsoft.com/library/de...ientsidesc.asp
--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
http://www.takempis.com
Big Things are made up of
Lots of Little Things.
"Music Lover" <mu***@my-heart.org> wrote in message
news:uf**************@TK2MSFTNGP12.phx.gbl...
when I add a msgbox("hello")
it returns
"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. "

What should I do in order to make a msgbox work?
Thanks in advance


Nov 17 '05 #7
Use a label control (normally hidden; generally at top of
page); when needed, change its back color to something
like light yellow, apply appropriate text, and make it
visible.

With a default property of hidden, it is out of sight
until needed.

And no client side script needed.
-----Original Message-----
when I add a msgbox("hello")
it returns
"It is invalid to show a modal dialog or form when the application is notrunning in UserInteractive mode. Specify the ServiceNotification orDefaultDesktopOnly style to display a notification from a serviceapplication. "

What should I do in order to make a msgbox work?
Thanks in advance
.

Nov 17 '05 #8
Use a label control (normally hidden; generally at top of
page); when needed, change its back color to something
like light yellow, apply appropriate text, and make it
visible.

With a default property of hidden, it is out of sight
until needed.

And no client side script needed.
-----Original Message-----
when I add a msgbox("hello")
it returns
"It is invalid to show a modal dialog or form when the application is notrunning in UserInteractive mode. Specify the ServiceNotification orDefaultDesktopOnly style to display a notification from a serviceapplication. "

What should I do in order to make a msgbox work?
Thanks in advance
.

Nov 17 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Peter Bassett | last post by:
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 get a msgbox onto the client from ASP since server...
3
by: JT | last post by:
im trying to use the MsgBox function in the following to display an ASP MsgBox containing text retrieved from the db into a recordset <% set rsMessages= myRecordset msg_text =...
2
by: js | last post by:
Hi all, I currently encounter a problem and it is urgent to me. After calling the MsgBox.Show(), the message box is shown with non-modal mode, what is the possible reason??? This only happen...
4
by: Lakrom | last post by:
Hi to all, how to put msgbox in this asp page, this send me a message Denied permission: 'MsgBox' <% Set Conn=server.createobject("ADODB.connection") Conn.open application("StrConRuta") set rs =...
6
by: Lapchien | last post by:
In this bit of code provided so helpfully by Nath: Private Sub Command118_Click() Dim rs As DAO.Recordset Set db = CurrentDb Set rs = db.openrecordset("IMPORT")
8
by: deko | last post by:
Can I close a MsgBox with VBA Code? Something like: If IsOpen (MsgBox, "Title") Then Close(MsgBox, "Title") Run some code Else Run other code End If Can this be done in VBA? Do I need to...
2
by: Radith Silva | last post by:
I need to use the MsgBox function like I used to in VB 6.0 So all i do is: MsgBox ("Please provide Input") BUT IN .NET: The error reads "msgbox is a namespace"
4
by: James | last post by:
What does this mean? 'To specify more than the first argument, you must use the MsgBox function in an expression' I'd love to see an example. Thanks!
9
by: Ivan Jericevich | last post by:
In my code below at the line 'response' a blip sound is heard and the program exits the sub -- No MsgBox is displayed. What am I doing wrong? If nonNumberEntered = True Then msg = "Enter...
2
by: perkykoala | last post by:
I apologize in advance for being REALLY detailed/verbose. It's the result of staring/tweaking code for too long. Using VB 2005: I need to design a multiple choice test (unfortunately, I can't...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.