Live Chat Icon For mobile
Live Chat Icon

Why do I get the error message ‘System.InvalidOperationException: 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 ….’

Platform: ASP.NET| Category: Basic

You can’t use MsgBox or MessageBox.Show in ASP.NET WebForm.
You may use:

VB.NET

Response.Write('<script>alert(’Hello’);</script>') 

C#

Response.Write('<script>alert(’Hello’);</script>') ;

Share with

Share on twitter
Share on facebook
Share on linkedin