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. display a message with the help of the msg box

display a message with the help of the msg box

Scheduled Pinned Locked Moved ASP.NET
help
8 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.
  • M Offline
    M Offline
    Mathew P V
    wrote on last edited by
    #1

    i want to display an error with the help of message box i wrote mbox("Enter the empty fields"); its showing an error mbox doesnt exist in this context what should i do am i missing any directive somebody help. thanks in advance

    B C 2 Replies Last reply
    0
    • M Mathew P V

      i want to display an error with the help of message box i wrote mbox("Enter the empty fields"); its showing an error mbox doesnt exist in this context what should i do am i missing any directive somebody help. thanks in advance

      B Offline
      B Offline
      Blue_Boy
      wrote on last edited by
      #2

      Show here your code what far you did.


      I Love T-SQL "Don't torture yourself,let the life to do it for you." If my post helps you kindly save my time by voting my post.

      M 1 Reply Last reply
      0
      • B Blue_Boy

        Show here your code what far you did.


        I Love T-SQL "Don't torture yourself,let the life to do it for you." If my post helps you kindly save my time by voting my post.

        M Offline
        M Offline
        Mathew P V
        wrote on last edited by
        #3

        [Message Deleted]

        B 1 Reply Last reply
        0
        • M Mathew P V

          i want to display an error with the help of message box i wrote mbox("Enter the empty fields"); its showing an error mbox doesnt exist in this context what should i do am i missing any directive somebody help. thanks in advance

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          I can't believe that someone asked you to show your code. Your core issue is manyfold. 1 - you're obviously using some sort of VB shortcut. Ugly 2 - you can't show any UI on the server, because, well, it's the server. If this worked, it would freeze execution and bring your server to it's knees. I recommend reading a book on ASP.NET, so you understand what ASP.NET is and does, and what the server is. Then a book on javascript, if you MUST show a popup message, you need to do it on the client, which means you need to do it in javascript.

          Christian Graus Driven to the arms of OSX by Vista. Please read this[^] if you don't like the answer I gave to your question. "! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.

          C 1 Reply Last reply
          0
          • M Mathew P V

            [Message Deleted]

            B Offline
            B Offline
            Blue_Boy
            wrote on last edited by
            #5

            Simply use javascript to display messagebox. example:

            javascript:alert('Enter your message string here!');


            I Love T-SQL "Don't torture yourself,let the life to do it for you." If my post helps you kindly save my time by voting my post.

            1 Reply Last reply
            0
            • C Christian Graus

              I can't believe that someone asked you to show your code. Your core issue is manyfold. 1 - you're obviously using some sort of VB shortcut. Ugly 2 - you can't show any UI on the server, because, well, it's the server. If this worked, it would freeze execution and bring your server to it's knees. I recommend reading a book on ASP.NET, so you understand what ASP.NET is and does, and what the server is. Then a book on javascript, if you MUST show a popup message, you need to do it on the client, which means you need to do it in javascript.

              Christian Graus Driven to the arms of OSX by Vista. Please read this[^] if you don't like the answer I gave to your question. "! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.

              C Offline
              C Offline
              Colin Angus Mackay
              wrote on last edited by
              #6

              Christian Graus wrote:

              I can't believe that someone asked you to show your code.

              Often times is becomes much easier to help when an actual code snippet will show exactly what the problem is rather than rely on a poster's often inaccurate, hazy, vague, incomplete or misunderstood interpretation of what is going on.

              Man who stand on hill with mouth open wait long time for roast duck to drop in

              V 1 Reply Last reply
              0
              • C Colin Angus Mackay

                Christian Graus wrote:

                I can't believe that someone asked you to show your code.

                Often times is becomes much easier to help when an actual code snippet will show exactly what the problem is rather than rely on a poster's often inaccurate, hazy, vague, incomplete or misunderstood interpretation of what is going on.

                Man who stand on hill with mouth open wait long time for roast duck to drop in

                V Offline
                V Offline
                Vasudevan Deepak Kumar
                wrote on last edited by
                #7

                Colin Angus Mackay wrote:

                when an actual code snippet will show exactly what the problem is

                OMG! That would invite trouble sometimes. The poster might get really attracted by such initial offer and CTRL+A, CTRL+V his Visual Studio file. Do you really want to get torched by that scorching torture?

                Vasudevan Deepak Kumar Personal Homepage
                Tech Gossips
                The woods are lovely, dark and deep, But I have promises to keep, And miles to go before I sleep, And miles to go before I sleep!

                C 1 Reply Last reply
                0
                • V Vasudevan Deepak Kumar

                  Colin Angus Mackay wrote:

                  when an actual code snippet will show exactly what the problem is

                  OMG! That would invite trouble sometimes. The poster might get really attracted by such initial offer and CTRL+A, CTRL+V his Visual Studio file. Do you really want to get torched by that scorching torture?

                  Vasudevan Deepak Kumar Personal Homepage
                  Tech Gossips
                  The woods are lovely, dark and deep, But I have promises to keep, And miles to go before I sleep, And miles to go before I sleep!

                  C Offline
                  C Offline
                  Colin Angus Mackay
                  wrote on last edited by
                  #8

                  Vasudevan Deepak Kumar wrote:

                  OMG! That would invite trouble sometimes. The poster might get really attracted by such initial offer and CTRL+A, CTRL+V his Visual Studio file. Do you really want to get torched by that scorching torture?

                  Then use the word "snippet". Seriously - I'm tired trying to help sometimes because most people don't actually want help. But I do my best, and if cutting out one barrier helps me help someone then I can put up with the occasional nutter who posts everything. The majority do not.

                  Man who stand on hill with mouth open wait long time for roast duck to drop in

                  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