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 : 1190 | 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.




Responses

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

Up
0
Down
Refer
http://dotnet-magic.blogspot.in/2009/07/showing-modal-dialog-box-or-form-when.html
http://stackoverflow.com/questions/8928713/how-to-resolve-error-showing-a-modal-dialog-box-or-form-when-the-application-i

Mark This Response as Answer
--
Chandu
http://www.dotnetfunda.com/images/dnfmvp.gif

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

Login to post response