Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. The Weird and The Wonderful
  4. ASP.NET Web application messagebox

ASP.NET Web application messagebox

Scheduled Pinned Locked Moved The Weird and The Wonderful
csharphelpasp-netvisual-studiodebugging
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mark Morgan Miranda
    wrote on last edited by
    #1

    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.

    OriginalGriffO L 2 Replies Last reply
    0
    • M Mark Morgan Miranda

      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.

      OriginalGriffO Offline
      OriginalGriffO Offline
      OriginalGriff
      wrote on last edited by
      #2

      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."

      "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
      "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

      1 Reply Last reply
      0
      • M Mark Morgan Miranda

        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.

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        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.

        L 1 Reply Last reply
        0
        • L Lost User

          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.

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          Even worse are the possibilities that if this code did actually work, you now have a modal dialaog box open on the server waiting for user input. How many of those do you think can be spawned before some kind of memory error occurs?

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups