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,045 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

The Orion Papers

Are you interested in becoming an AWS Certified Solutions Architect?

Discover a new interactive way of training for the exam.

Question has a verified solution.

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

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

717 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