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.