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. General Programming
  3. C#
  4. Message Box in C#

Message Box in C#

Scheduled Pinned Locked Moved C#
csharpjavascriptasp-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.
  • I Offline
    I Offline
    idreesbadshah
    wrote on last edited by
    #1

    I m using ASP.net with C#.I want to dispaly a message box just like we do "Alert('this is message')" in javascript.But i want to show such a message box or dialogue box in asp.net with C#.what should i do because its not a windows form

    A L 2 Replies Last reply
    0
    • I idreesbadshah

      I m using ASP.net with C#.I want to dispaly a message box just like we do "Alert('this is message')" in javascript.But i want to show such a message box or dialogue box in asp.net with C#.what should i do because its not a windows form

      A Offline
      A Offline
      Alvaro Mendez
      wrote on last edited by
      #2

      Do you want to show the message box on the browser? If so, alert('message') does it. Remember that JavaScript is case sensitive so it needs to be alert not Alert. If you want to show it on the server, then you can't because it would freeze the server until someone clicked OK. Regards, Alvaro


      V 1 Reply Last reply
      0
      • A Alvaro Mendez

        Do you want to show the message box on the browser? If so, alert('message') does it. Remember that JavaScript is case sensitive so it needs to be alert not Alert. If you want to show it on the server, then you can't because it would freeze the server until someone clicked OK. Regards, Alvaro


        V Offline
        V Offline
        ventomito
        wrote on last edited by
        #3

        Maybe this can help MessageBox.Show("Error message", "Name Entry Error", MessageBoxButtons.OK,MessageBoxIcon.Exclamation); VentoEngine corp. Program your life ^^

        D 1 Reply Last reply
        0
        • V ventomito

          Maybe this can help MessageBox.Show("Error message", "Name Entry Error", MessageBoxButtons.OK,MessageBoxIcon.Exclamation); VentoEngine corp. Program your life ^^

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          Won't work in an ASP.NET app. MessageBox is only part of the Windows.Forms namespace. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

          1 Reply Last reply
          0
          • I idreesbadshah

            I m using ASP.net with C#.I want to dispaly a message box just like we do "Alert('this is message')" in javascript.But i want to show such a message box or dialogue box in asp.net with C#.what should i do because its not a windows form

            L Offline
            L Offline
            luckyv
            wrote on last edited by
            #5

            hi, You can write code in java script and use 'Registerstartupscript' for implementing that script. lucky:)

            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