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

Posted by prakashmondal5-21103 under ASP.NET on 6/14/2014 | Points: 10 | Views : 1454 | Status : [Member] | Replies : 2
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.


Posted by: Bandi on: 6/16/2014 [Member] [MVP] Platinum | Points: 25
Posted by: Bandi on: 6/16/2014 [Member] [MVP] Platinum | Points: 25


Mark This Response as Answer

prakashmondal5-21103, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response