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

Confermation Message in asp.net

Scheduled Pinned Locked Moved ASP.NET
csharpasp-nethelpquestion
5 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
    Dushan123
    wrote on last edited by
    #1

    Hey! I need to display confirmation message in asp.net. I need to do something like this. Once user click Ok button some code execute and then return the confirmation message. According to the use response other code execute.Basically it is if/else statement. please help me how can i do it

    Dushan Perera

    P S D 3 Replies Last reply
    0
    • D Dushan123

      Hey! I need to display confirmation message in asp.net. I need to do something like this. Once user click Ok button some code execute and then return the confirmation message. According to the use response other code execute.Basically it is if/else statement. please help me how can i do it

      Dushan Perera

      S Offline
      S Offline
      Suresh Suthar
      wrote on last edited by
      #2

      Hi Dushan, If you are using Asp.Net 2.0 and AJAX then its very simple. You can user ConfirmButtonExtender from AJAX Toolkit. :laugh: Or you can use JavaScript to do this. Just Google this.... :-\ http://www.google.co.in/search?hl=en&q=confirmation+box+in+javascript&btnG=Google+Search&meta=&aq=2&oq=confirmation+[^]

      Be an Eagle, Sky is Yours.

      1 Reply Last reply
      0
      • D Dushan123

        Hey! I need to display confirmation message in asp.net. I need to do something like this. Once user click Ok button some code execute and then return the confirmation message. According to the use response other code execute.Basically it is if/else statement. please help me how can i do it

        Dushan Perera

        P Offline
        P Offline
        Parwej Ahamad
        wrote on last edited by
        #3

        - Add "OnClick" attribute on button and call javascript method. - In this method write the Javascript confirmation message and on the basis on user response return true or false. Note: Don't forget to return True or False

        Parwej Ahamad http://parwej.wordpress.com/

        1 Reply Last reply
        0
        • D Dushan123

          Hey! I need to display confirmation message in asp.net. I need to do something like this. Once user click Ok button some code execute and then return the confirmation message. According to the use response other code execute.Basically it is if/else statement. please help me how can i do it

          Dushan Perera

          D Offline
          D Offline
          Dushan123
          wrote on last edited by
          #4

          Basically i need common method to display the message. This class or page can use in the entire project

          Dushan Perera

          A 1 Reply Last reply
          0
          • D Dushan123

            Basically i need common method to display the message. This class or page can use in the entire project

            Dushan Perera

            A Offline
            A Offline
            Abhijit Jana
            wrote on last edited by
            #5

            You can use Comman Floating DIV with Message and Button. This will make the things very easy. On any button click show the DIV and take the event from the DIV Button. You can also look into JavaScript Confirm Box.

            Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you. View My Latest Article

            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