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. How to use message box in asp.net like in vb

How to use message box in asp.net like in vb

Scheduled Pinned Locked Moved ASP.NET
tutorialcsharpasp-nethelp
6 Posts 6 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.
  • K Offline
    K Offline
    Kissy16
    wrote on last edited by
    #1

    Here my problem is ,i need to display a message through messagabox,not by using simpl label,how to do in asp.net,give me with some example coe thanks in advance

    kissy

    D J G S D 5 Replies Last reply
    0
    • K Kissy16

      Here my problem is ,i need to display a message through messagabox,not by using simpl label,how to do in asp.net,give me with some example coe thanks in advance

      kissy

      J Offline
      J Offline
      just3ala2
      wrote on last edited by
      #2

      There is no implementation for the message box in asp.net like vb.net desktop application instead u need to use the "window.open" for opening a new window "window.alert" for messages and "window.confirm" for checking yes/no messges Hope this would help

      Best Regards 3ala2 :)

      1 Reply Last reply
      0
      • K Kissy16

        Here my problem is ,i need to display a message through messagabox,not by using simpl label,how to do in asp.net,give me with some example coe thanks in advance

        kissy

        D Offline
        D Offline
        dj rock
        wrote on last edited by
        #3

        i am not getting you question but i think you can display message box bye following code msgbox("Error occurs",MsgBoxStyle.Information,"Title")

        Regards, DJ Rock

        1 Reply Last reply
        0
        • K Kissy16

          Here my problem is ,i need to display a message through messagabox,not by using simpl label,how to do in asp.net,give me with some example coe thanks in advance

          kissy

          G Offline
          G Offline
          Guffa
          wrote on last edited by
          #4

          You can't use a MessageBox in ASP.NET, as that would show up on the server, and the server side of a web application does not have a user interface. Use a Javascript alert: window.alert('The message.');

          --- b { font-weight: normal; }

          1 Reply Last reply
          0
          • K Kissy16

            Here my problem is ,i need to display a message through messagabox,not by using simpl label,how to do in asp.net,give me with some example coe thanks in advance

            kissy

            S Offline
            S Offline
            Suresh Pirsquare
            wrote on last edited by
            #5

            You can not do this in asp.net. You have to use Javascript to do display an alert message. and the function is->Alert("Message") ;P Regards, Suresh Dayma

            Everything Is Possible!

            1 Reply Last reply
            0
            • K Kissy16

              Here my problem is ,i need to display a message through messagabox,not by using simpl label,how to do in asp.net,give me with some example coe thanks in advance

              kissy

              D Offline
              D Offline
              Deepak the Cool
              wrote on last edited by
              #6

              hi if u r working with asp.net2005 thn u hav to do add reference to system.windows.forms at code behind using following : using system.windows.forms; and use MessageBox.Show("You have been must login to see Demo", "Error", MessageBoxButtons.OK,MessageBoxIcon.Error, MessageBoxDefaultButton.Button1, MessageBoxOptions.DefaultDesktopOnly); and more................. :)

              Deepak Smile a Lots,Its Costs Nothing

              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