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. Server Side Alert Messages.

Server Side Alert Messages.

Scheduled Pinned Locked Moved ASP.NET
csharpjavascriptsysadminhelptutorial
3 Posts 3 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.
  • D Offline
    D Offline
    Dio22
    wrote on last edited by
    #1

    I need to display an operation successful/unsuccessful message client-side, after server-side code determines if the operation was successful or not.. I know how to display javascript alerts on button clicks, but I need an alert determined by server code.. help meee :) thanks. (Ps. I'm coding in C#)

    M S 2 Replies Last reply
    0
    • D Dio22

      I need to display an operation successful/unsuccessful message client-side, after server-side code determines if the operation was successful or not.. I know how to display javascript alerts on button clicks, but I need an alert determined by server code.. help meee :) thanks. (Ps. I'm coding in C#)

      M Offline
      M Offline
      Malcolm Smart
      wrote on last edited by
      #2

      On you event code, on completion, register the javascript with the ScriptManager. This can only be done during a postback, as the server can't push data to the client. //do lots of server side type stuff //tell the user you are complete... ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "myuniquekey", @"alert('operation is complete');", true);

      "More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF

      "This time yesterday, I still had 24 hours to meet the deadline I've just missed today."

      1 Reply Last reply
      0
      • D Dio22

        I need to display an operation successful/unsuccessful message client-side, after server-side code determines if the operation was successful or not.. I know how to display javascript alerts on button clicks, but I need an alert determined by server code.. help meee :) thanks. (Ps. I'm coding in C#)

        S Offline
        S Offline
        Sarani Ravindran
        wrote on last edited by
        #3

        u can msgbox concept for server side. see this link: http://www.bassilsoft.com/

        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