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. Message box in asp.net

Message box in asp.net

Scheduled Pinned Locked Moved .NET (Core and Framework)
csharpasp-netquestion
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.
  • M Offline
    M Offline
    Milind Panchal
    wrote on last edited by
    #1

    I want a message box with Yes and No option asp.net 1.0 web application how can i do this

    P N 2 Replies Last reply
    0
    • M Milind Panchal

      I want a message box with Yes and No option asp.net 1.0 web application how can i do this

      P Offline
      P Offline
      pmarfleet
      wrote on last edited by
      #2

      swami samarth wrote:

      I want a message box with Yes and No option asp.net 1.0 web application

      ASP.NET 1.0? The latest version is 3.5. You should really consider upgrading. You could do this with the Javascript confirm[^] method.

      Paul Marfleet "No, his mind is not for rent To any God or government" Tom Sawyer - Rush

      1 Reply Last reply
      0
      • M Milind Panchal

        I want a message box with Yes and No option asp.net 1.0 web application how can i do this

        N Offline
        N Offline
        Navdeep Bhardwaj
        wrote on last edited by
        #3

        Hi, You will have to do it using Javascript. Try following code in your code behind on the button where you want this box. cmdSubmit.Attributes.Add("onclick", "return window.confirm('Are you sure!!!');"); Regards

        Nav

        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