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. Message Box in ASP.Net

Message Box in ASP.Net

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netdatabasehelptutorial
7 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.
  • D Offline
    D Offline
    Deathorites
    wrote on last edited by
    #1

    Hello There I am new in ASP.Net,is there a code on how to display a message box in ASP.Net, i want to display a message that will delete the data in database when i click a delete button,and the default button is yesnocancel... hope there's someone to help me... thanks!:-D

    J 1 Reply Last reply
    0
    • D Deathorites

      Hello There I am new in ASP.Net,is there a code on how to display a message box in ASP.Net, i want to display a message that will delete the data in database when i click a delete button,and the default button is yesnocancel... hope there's someone to help me... thanks!:-D

      J Offline
      J Offline
      jcrussell
      wrote on last edited by
      #2

      i think you have to use client side scripting for this (eg: alert(...) in javascript) /jason

      D 1 Reply Last reply
      0
      • J jcrussell

        i think you have to use client side scripting for this (eg: alert(...) in javascript) /jason

        D Offline
        D Offline
        Deathorites
        wrote on last edited by
        #3

        Thanks jason,i'm trying to work on it...

        N T 2 Replies Last reply
        0
        • D Deathorites

          Thanks jason,i'm trying to work on it...

          N Offline
          N Offline
          NekChan
          wrote on last edited by
          #4

          Here is an example: used confirm in javascript function DeleteSpread() { var OK = confirm('Are you sure you want to delete these Spreads?'); if (OK) { return true; } else { return false; } } //Then you will bind this function on the button. No pains, no gains.

          D 1 Reply Last reply
          0
          • D Deathorites

            Thanks jason,i'm trying to work on it...

            T Offline
            T Offline
            thespiff
            wrote on last edited by
            #5

            This CP article was quite helpful for me: http://www.codeproject.com/aspnet/AspNetMsgBox.asp

            D 1 Reply Last reply
            0
            • N NekChan

              Here is an example: used confirm in javascript function DeleteSpread() { var OK = confirm('Are you sure you want to delete these Spreads?'); if (OK) { return true; } else { return false; } } //Then you will bind this function on the button. No pains, no gains.

              D Offline
              D Offline
              Deathorites
              wrote on last edited by
              #6

              Thanks for the info... Deathorites

              1 Reply Last reply
              0
              • T thespiff

                This CP article was quite helpful for me: http://www.codeproject.com/aspnet/AspNetMsgBox.asp

                D Offline
                D Offline
                Deathorites
                wrote on last edited by
                #7

                Thanks for the info... Deathorites

                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