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,030 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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

743 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now