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. .NET (Core and Framework)
  4. MessageBox on the client?

MessageBox on the client?

Scheduled Pinned Locked Moved .NET (Core and Framework)
javascriptalgorithmshelpquestion
4 Posts 2 Posters 1 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.
  • C Offline
    C Offline
    Carolina
    wrote on last edited by
    #1

    Hi! I really need to find a simple way to produce a messagebox, similar to that one would use in a standard windows application before deleting items, saving och closing or whatever. I used to do this in ASP by using JavaScript on the client (alert...) but I thought I would not have to bother with that now. I've been searching through the SDK several times and still can't find anything usefull. The MessageBox I found seems to work only in Windows applications, not in browsers. Has anyone seen, heard or done anything that might help me? Consultant, system/web developer. IMS Consulting AB, Sweden

    J 1 Reply Last reply
    0
    • C Carolina

      Hi! I really need to find a simple way to produce a messagebox, similar to that one would use in a standard windows application before deleting items, saving och closing or whatever. I used to do this in ASP by using JavaScript on the client (alert...) but I thought I would not have to bother with that now. I've been searching through the SDK several times and still can't find anything usefull. The MessageBox I found seems to work only in Windows applications, not in browsers. Has anyone seen, heard or done anything that might help me? Consultant, system/web developer. IMS Consulting AB, Sweden

      J Offline
      J Offline
      James T Johnson
      wrote on last edited by
      #2

      ASP.NET is a server-side thing. To do anything like that you're still going to have to rely on client-side script. If you want you could roll your own MessageBox component that you could place on your ASPX pages and use like the Windows version, but in the end it'll have to call down to alert as well. I also have no experience in doing such a thing :p James

      C 1 Reply Last reply
      0
      • J James T Johnson

        ASP.NET is a server-side thing. To do anything like that you're still going to have to rely on client-side script. If you want you could roll your own MessageBox component that you could place on your ASPX pages and use like the Windows version, but in the end it'll have to call down to alert as well. I also have no experience in doing such a thing :p James

        C Offline
        C Offline
        Carolina
        wrote on last edited by
        #3

        Hi! Thanks :) I've managed to create a messagebox component but I immediately ran in to further problems: If I want to prompt the user for confirmation or input, how do I get the value back to the server? As you pointed out I'll be needing to use scripting inside the component, but I still can't figure out how to get the values back from the client immidiately. I realise you are not experienced in this (nor am I), but I thought I might as well elaborate on my thread so that maybe someone else can supply more information :) Consultant, system/web developer. IMS Consulting AB, Sweden

        J 1 Reply Last reply
        0
        • C Carolina

          Hi! Thanks :) I've managed to create a messagebox component but I immediately ran in to further problems: If I want to prompt the user for confirmation or input, how do I get the value back to the server? As you pointed out I'll be needing to use scripting inside the component, but I still can't figure out how to get the values back from the client immidiately. I realise you are not experienced in this (nor am I), but I thought I might as well elaborate on my thread so that maybe someone else can supply more information :) Consultant, system/web developer. IMS Consulting AB, Sweden

          J Offline
          J Offline
          James T Johnson
          wrote on last edited by
          #4

          I think the easiest thing to do, would be to redirect to a confirmed page. I think this is what hotmail does in its Junk Mail folder's "Empty Folder" command. You click the button to empty the folder, that brings up the confirmation Alert box, without moving to another page. If you click ok, it then goes to the confirmed (delete all from folder) page. I think if you click cancel it does nothing, but I've never cancelled that dialog before :-D HTH, James Sonork ID: 100.11138 - Hasaki and a digital cookie (not chocolate chip, its computer chip) goes to whoever can be the first to tell me what Hasaki means. I know someone registered on here can tell me :)

          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