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. Web Development
  3. ASP.NET
  4. MsgBox in ASP.NET 1.1

MsgBox in ASP.NET 1.1

Scheduled Pinned Locked Moved ASP.NET
5 Posts 5 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.
  • B Offline
    B Offline
    bishwambhar_sen
    wrote on last edited by
    #1

    Hi all, I am facing a strange problem which is driving me crazy. I am using MsgBox("Hi",somestyle,"Title").It was working fine for days.But now all of a sudden I am getting an error of the sort "it is invalid to show a modal dialog or form when the application is not running in userinteractive mode. specify the servicenotification or defaultdesktoponly style to display a notification from a service application." My application is completely ready and is on the verge of being deployed on the server.Plz help me out. :(

    D T C 3 Replies Last reply
    0
    • B bishwambhar_sen

      Hi all, I am facing a strange problem which is driving me crazy. I am using MsgBox("Hi",somestyle,"Title").It was working fine for days.But now all of a sudden I am getting an error of the sort "it is invalid to show a modal dialog or form when the application is not running in userinteractive mode. specify the servicenotification or defaultdesktoponly style to display a notification from a service application." My application is completely ready and is on the verge of being deployed on the server.Plz help me out. :(

      T Offline
      T Offline
      ToddHileHoffer
      wrote on last edited by
      #2

      You can't use a message box in asp.net. try something like page resgisterstartupscript " alert('" + yourMessageText + "');"

      I didn't get any requirements for the signature

      1 Reply Last reply
      0
      • B bishwambhar_sen

        Hi all, I am facing a strange problem which is driving me crazy. I am using MsgBox("Hi",somestyle,"Title").It was working fine for days.But now all of a sudden I am getting an error of the sort "it is invalid to show a modal dialog or form when the application is not running in userinteractive mode. specify the servicenotification or defaultdesktoponly style to display a notification from a service application." My application is completely ready and is on the verge of being deployed on the server.Plz help me out. :(

        D Offline
        D Offline
        Dev S
        wrote on last edited by
        #3

        I dont think Msgbox is supported in asp.net. it is for windows application.

        1 Reply Last reply
        0
        • B bishwambhar_sen

          Hi all, I am facing a strange problem which is driving me crazy. I am using MsgBox("Hi",somestyle,"Title").It was working fine for days.But now all of a sudden I am getting an error of the sort "it is invalid to show a modal dialog or form when the application is not running in userinteractive mode. specify the servicenotification or defaultdesktoponly style to display a notification from a service application." My application is completely ready and is on the verge of being deployed on the server.Plz help me out. :(

          C Offline
          C Offline
          CaptainJackSparrow
          wrote on last edited by
          #4

          u can add it as a server control. someone has created one already. see if this one works A Simple ASP.NET Server Control: Message Box & Confirmation Box[^]

          A 1 Reply Last reply
          0
          • C CaptainJackSparrow

            u can add it as a server control. someone has created one already. see if this one works A Simple ASP.NET Server Control: Message Box & Confirmation Box[^]

            A Offline
            A Offline
            archit3000
            wrote on last edited by
            #5

            but what can be done if a confirmation masssage box is to be popped up only after certain condition is full filled

            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