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. confirmation message box from code behind

confirmation message box from code behind

Scheduled Pinned Locked Moved ASP.NET
csharpasp-net
5 Posts 5 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.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    Hi all, I want to display confirmation message box in Asp.net code behind file. i am performing some operation after that one message should come if user click on ok then only it should execute other line. Thanks and regards; amit patel

    S N S D 4 Replies Last reply
    0
    • L Lost User

      Hi all, I want to display confirmation message box in Asp.net code behind file. i am performing some operation after that one message should come if user click on ok then only it should execute other line. Thanks and regards; amit patel

      S Offline
      S Offline
      sashidhar
      wrote on last edited by
      #2

      R u talking abt this..! Buttons, Message Box, and Confirm Box in ASP.NET 3.5[^]

      LatestArticle :Log4Net Why Do Some People Forget To Mark as Answer .If It Helps.

      1 Reply Last reply
      0
      • L Lost User

        Hi all, I want to display confirmation message box in Asp.net code behind file. i am performing some operation after that one message should come if user click on ok then only it should execute other line. Thanks and regards; amit patel

        N Offline
        N Offline
        Neh C
        wrote on last edited by
        #3

        ctrl.Attributes.Add("OnClick", "if(!confirm('Do you want to Delete?!')) return false;");

        1 Reply Last reply
        0
        • L Lost User

          Hi all, I want to display confirmation message box in Asp.net code behind file. i am performing some operation after that one message should come if user click on ok then only it should execute other line. Thanks and regards; amit patel

          S Offline
          S Offline
          Sandeep Mewara
          wrote on last edited by
          #4

          You need to see the difference between Windows and Web application. Based on your requirement, you cannot use the windows message box as its client based. (the way it works in windows applications!) you need to develop a server custom control for it if you really need something similar. Better would be divide your codebase in such a fashion that you can use client side Windows confirm messagebox and based on the option selected execute code accordingly.

          1 Reply Last reply
          0
          • L Lost User

            Hi all, I want to display confirmation message box in Asp.net code behind file. i am performing some operation after that one message should come if user click on ok then only it should execute other line. Thanks and regards; amit patel

            D Offline
            D Offline
            DX Roster
            wrote on last edited by
            #5

            you can use System.Windows.MessgaeBox.Show("message","heading"); If You Get your answer then please Rating me... Thanks.. "Are You Ready" DX-ARMY

            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