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