View Full Version : Displaying MsgBox
dbireporter
12-12-2010, 09:49 AM
In a VB ASP.NET 3.5 app, when I try to use MsgBox, I get an error message: "Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation."
Anyone know what I must do to correct this?
CrystalCMS
12-12-2010, 11:10 AM
It depends what you're trying to do. If you mean you're attempting to use a System.Windows.Forms.MessageBox (http://msdn.microsoft.com/en-us/library/system.windows.forms.messagebox(v=VS.90).aspx) in an ASP.NET application then it's never going to work. I need more info to help.
bruce
12-13-2010, 11:00 AM
You'll have to use Javascript.
dbireporter
12-20-2010, 04:11 AM
Thanks Joe and thanks Bruce.
Just knowing MsgBox doesn;t work in an ASP app helps.
I'll find another way to accomplish the same thing.
Dan
dbireporter
12-20-2010, 05:08 AM
What I am trying to do is interrupt processing FormView_ItemInserting VB code while the user decides whether to add a record or not based on a condition expressed in a message. That's why I tried to use MSgBox.
Any ideas how to do this?
CrystalCMS
12-20-2010, 11:19 AM
I tend to lean towards jquery ui dialog for client side interaction / modal dialogs. I'm also a big fan of jquery ui grid which includes support for intelligent data insertion/editing/deletion etc.
vBulletin® ©Jelsoft Enterprises Ltd.