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 Yes/No Buttons!!

MessageBox Yes/No Buttons!!

Scheduled Pinned Locked Moved ASP.NET
toolshelp
5 Posts 2 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.
  • S Offline
    S Offline
    Sr Frank
    wrote on last edited by
    #1

    string _scriptCloseDialog = "<script>alert('Lead ID should be 9 digit long');</script>"; ClientScript.RegisterStartupScript(GetType(), "_load", _scriptCloseDialog); I want to add Yes No Buttons in this MessageBox...Please help.... Thanks... :confused:

    G 1 Reply Last reply
    0
    • S Sr Frank

      string _scriptCloseDialog = "<script>alert('Lead ID should be 9 digit long');</script>"; ClientScript.RegisterStartupScript(GetType(), "_load", _scriptCloseDialog); I want to add Yes No Buttons in this MessageBox...Please help.... Thanks... :confused:

      G Offline
      G Offline
      Gaurav K Singh
      wrote on last edited by
      #2

      use confirm dialog in place of alert...

      The miracle is this--the more we share, the more we have.

      S 1 Reply Last reply
      0
      • G Gaurav K Singh

        use confirm dialog in place of alert...

        The miracle is this--the more we share, the more we have.

        S Offline
        S Offline
        Sr Frank
        wrote on last edited by
        #3

        string _scriptCloseDialog = "<script>confirm('Are you sure');</script>"; ClientScript.RegisterStartupScript(GetType(), "_load", _scriptCloseDialog); I want to compare this messagebox value...how to campare? :~

        G 1 Reply Last reply
        0
        • S Sr Frank

          string _scriptCloseDialog = "<script>confirm('Are you sure');</script>"; ClientScript.RegisterStartupScript(GetType(), "_load", _scriptCloseDialog); I want to compare this messagebox value...how to campare? :~

          G Offline
          G Offline
          Gaurav K Singh
          wrote on last edited by
          #4

          if (confirm("Are you sure you want to delete the custom search?")==true) return true; else return false;

          The miracle is this--the more we share, the more we have.

          S 1 Reply Last reply
          0
          • G Gaurav K Singh

            if (confirm("Are you sure you want to delete the custom search?")==true) return true; else return false;

            The miracle is this--the more we share, the more we have.

            S Offline
            S Offline
            Sr Frank
            wrote on last edited by
            #5

            I am new for this JavaScript code... I am writing code in .CS file... There I want to compare MessageBox Value... string _scriptCloseDialog = "<script>confirm('Are you sure you want to delete?');</script>"; ClientScript.RegisterStartupScript(GetType(), "_load", _scriptCloseDialog); can i compare this line of code? ClientScript.RegisterStartupScript(GetType(), "_load", _scriptCloseDialog); Please advise.. :((

            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