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. Messagebox and alerts

Messagebox and alerts

Scheduled Pinned Locked Moved ASP.NET
csharpasp-nethelpquestion
4 Posts 4 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.
  • J Offline
    J Offline
    jainiraj
    wrote on last edited by
    #1

    In ASP.net how we show messagebox and alerts ti users when an error occurs????

    D P L 3 Replies Last reply
    0
    • J jainiraj

      In ASP.net how we show messagebox and alerts ti users when an error occurs????

      D Offline
      D Offline
      deepthy p m 0
      wrote on last edited by
      #2

      Use javascript OR u Can use Response.Write("alert('Enter the message here');") in the code window. But when u use Ajax controls Response.Write not possible u can use label and write the msg in that label

      modified on Thursday, May 21, 2009 12:56 AM

      1 Reply Last reply
      0
      • J jainiraj

        In ASP.net how we show messagebox and alerts ti users when an error occurs????

        P Offline
        P Offline
        padmanabhan N
        wrote on last edited by
        #3

        use java script or show the messages in validation summary (in Vlaidation summary there is a property called ShowMessageBox="True")

        Padmanabhan

        1 Reply Last reply
        0
        • J jainiraj

          In ASP.net how we show messagebox and alerts ti users when an error occurs????

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

          Alternatively you can display a javascript alert after a postback by Page.ClientScript.RegisterStartupScript(this.GetType(), "testkey", " window.alert('Your Alert Message')");

          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