Solved

popup message

Posted on 2016-10-13
3
26 Views
Last Modified: 2016-10-13
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
Comment
Question by:mcrmg
  • 2
3 Comments
 
LVL 33

Accepted Solution

by:
paulmacd earned 500 total points
ID: 41842659
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
 

Author Closing Comment

by:mcrmg
ID: 41842662
Thank you
0
 
LVL 33

Expert Comment

by:paulmacd
ID: 41842711
Happy to help!

Good luck!
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

706 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

21 Experts available now in Live!

Get 1:1 Help Now