2
Reply

How to use MessageBox in Win Server 2008 R2 using ASP.NET C#

Prakash Mondal

Prakash Mondal

Jun 14 2014 9:12 AM
1.5k
I want to show any type of message using MessageBox in Windows Server 2008 R2 with ASP.NET using C#.
 
I use bellow this code:
 
MessageBox.Show("Registration Successfully Completed", "Success!!", MessageBoxButtons.OK, MessageBoxIcon.Information);

But show error:(bellow):
 
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.
 
 
Please solve this problem.
 

Upload Source Code  Select only zip and rar file.
Answers (2)