[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 54
  • Last Modified:

popup message

I use my desktop as dev server, it runs fine with the message such as the following:

System.Windows.Forms.MessageBox.Show("HERE")

But when I move it to production, I am getting 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 need that to alert user if they want to overwrite the report with YES/NO.  Why doesnt it work and is there any other way?  thanks
0
mcrmg
Asked:
mcrmg
  • 2
1 Solution
 
Paul MacDonaldDirector, Information SystemsCommented:
If this is really ASP.Net, you'll need to inject some javascript into your page.  All that "system.windows" stuff runs on the server, not on the client.
0
 
mcrmgAuthor Commented:
Thank you
0
 
Paul MacDonaldDirector, Information SystemsCommented:
Happy to help!

Good luck!
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now