ASP.NET Web application messagebox
-
System.Windows.Forms.MessageBox.Show
When used on "Web Application" actualy works on Visual Studio 2010 during debug runtime not a single warning or error. Just to find out that once compiled and uploaded to be viewed online then you get ERROR saying it was only meant for local application. Then why the hell they don't even tell while you where debuging it took me about 4 hours to found this out. you will get this error:
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.
Beware of this .Net debuging st*p*d*ty! :mad::mad: or maybe I was the problem :sigh: I was st*p*d to believe in some guy posting that this is better way to show message box on Web App. -
System.Windows.Forms.MessageBox.Show
When used on "Web Application" actualy works on Visual Studio 2010 during debug runtime not a single warning or error. Just to find out that once compiled and uploaded to be viewed online then you get ERROR saying it was only meant for local application. Then why the hell they don't even tell while you where debuging it took me about 4 hours to found this out. you will get this error:
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.
Beware of this .Net debuging st*p*d*ty! :mad::mad: or maybe I was the problem :sigh: I was st*p*d to believe in some guy posting that this is better way to show message box on Web App.You aren't the first to do that, and you won't be the last. I deal with maybe one Q&A question aasking "why doesn't this work anymore?" each week...
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together. Manfred R. Bihy: "Looks as if OP is learning resistant."
-
System.Windows.Forms.MessageBox.Show
When used on "Web Application" actualy works on Visual Studio 2010 during debug runtime not a single warning or error. Just to find out that once compiled and uploaded to be viewed online then you get ERROR saying it was only meant for local application. Then why the hell they don't even tell while you where debuging it took me about 4 hours to found this out. you will get this error:
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.
Beware of this .Net debuging st*p*d*ty! :mad::mad: or maybe I was the problem :sigh: I was st*p*d to believe in some guy posting that this is better way to show message box on Web App. -
Developers often forget that to show a message box on the client computer, the code must be running on the client computer, but in case of a web app, the code runs on the web server. Use JavaScript's
alert()
to show message box in the browser.