Subject: MessageBox
Posted By: Ric_H Post Date: 4/17/2006 8:41:51 AM
I am trying to add a message box to a form.  What I want to happen is when a person presses a button to delete an item I want the messagebox to appear and ask them if they are sure.  What I get is the error
"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."
I don't know what this means.  
Any help?

Reply By: rumbafum Reply Date: 4/19/2006 6:43:12 AM
Your using a messagebox in a web app? MessageBox works only in Windows Forms if that's the case. Use some javascript code to accomplish this with window.confirm for example.

Reply By: Imar Reply Date: 4/19/2006 1:45:35 PM
Hi there,

If this is indeed for an ASP.NET application, you may want to take a look here: http://imar.spaanjaars.com/QuickDocId.aspx?QUICKDOC=355

HtH,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
While typing this post, I was listening to: LAX by Xzibit (Track 2 from the album: Weapons Of Mass Destruction) What's This?

Go to topic 42899

Return to index page 310
Return to index page 309
Return to index page 308
Return to index page 307
Return to index page 306
Return to index page 305
Return to index page 304
Return to index page 303
Return to index page 302
Return to index page 301