Solved

modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation

Posted on 2009-07-02
3
1,035 Views
Last Modified: 2012-05-07
Hi all Im new asp.net, and have made a boo boo - I have used a message box function on the vb.net page tied to an asp.net page - when I run it from Visual studio 2005 it works fine, when i run it from the iis manager I get the error:

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.

I believe it has some thing to do with server/client - but dont know how I can get round it - Please help!
reply = MsgBox("Do you want to Create a record For " & Organisation.Text, MsgBoxStyle.YesNo, "Add record")
 
 
        If reply = 6 Then
' do some stuff
else
'dont do nuffin
end if

Open in new window

0
Comment
Question by:m3housing
3 Comments
 
LVL 15

Accepted Solution

by:
mohan_sekar earned 500 total points
ID: 24767257
You cannot show a messagebox a that way - that works only in design time or if it's a desktop application. Use javascript on client side - confirm() is what you need - http://www.tizag.com/javascriptT/javascriptconfirm.php
0
 

Author Comment

by:m3housing
ID: 24767360
its on my vb.net from though - and pops up if the user clicks a command button
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question