MsgBox in ASP.NET?



I use VB.NET to create ASP.NET applications. To display a message box
in a VB app, one can use MsgBox. But when I used MsgBox while editing
an ASPX page, the following error was generated:

System.InvalidOperationException: 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.

pointing to the line which has the MsgBox code. The error message also
includes the solution to overcome this error but how do I specify the
ServiceNotification or DefaultDesktopOnly style to show MsgBox to users
in an ASPX app?




Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

MsgBox 2
Enterprise Logging does nothing on server 5
Weird ASP.NET 2.0 Error 1
msgbox 4
MsgBox Error 1
Window Services XML Export Error 1
Using OpenFileFialog in web 2