Prakash Mondal

Prakash Mondal

  • NA
  • 288
  • 208.9k

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

Jun 14 2014 9:12 AM
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.
 

Answers (2)