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. Passing value to confirmation box

Passing value to confirmation box

Scheduled Pinned Locked Moved ASP.NET
questiondatabase
5 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.
  • S Offline
    S Offline
    sjs4u
    wrote on last edited by
    #1

    Hi, I am using gridview in that i used button as Item Template field. Now I am using gridviews rowcommand event for some database calculations. I want confirmation box where I want to pass one database value to show in the message of confirmation box. now i want to show my value in the confirmation boxs message. How can I do this? Thanks sjs

    B M 2 Replies Last reply
    0
    • S sjs4u

      Hi, I am using gridview in that i used button as Item Template field. Now I am using gridviews rowcommand event for some database calculations. I want confirmation box where I want to pass one database value to show in the message of confirmation box. now i want to show my value in the confirmation boxs message. How can I do this? Thanks sjs

      B Offline
      B Offline
      Brij
      wrote on last edited by
      #2

      you must be attaching a client side function to on every button to show the confirmation box. So pass one more parameter, which you want to show on confirmation box and update the text accordingly and show the message. Let me know if face problem

      Cheers!! Brij Check my latest Article :Exploring ASP.NET Validators

      M 1 Reply Last reply
      0
      • S sjs4u

        Hi, I am using gridview in that i used button as Item Template field. Now I am using gridviews rowcommand event for some database calculations. I want confirmation box where I want to pass one database value to show in the message of confirmation box. now i want to show my value in the confirmation boxs message. How can I do this? Thanks sjs

        M Offline
        M Offline
        Member 4501940
        wrote on last edited by
        #3

        In order of preference: 1 - Include that column as a DataKey in the DataKeyNames property of the GridView. 2 - Use the column as a CommandArgument property of the Button. 3 - Use a HiddenField.

        1 Reply Last reply
        0
        • B Brij

          you must be attaching a client side function to on every button to show the confirmation box. So pass one more parameter, which you want to show on confirmation box and update the text accordingly and show the message. Let me know if face problem

          Cheers!! Brij Check my latest Article :Exploring ASP.NET Validators

          M Offline
          M Offline
          Member 4501940
          wrote on last edited by
          #4

          Yes, you are so right. I am 'old-school' and use mostly server-side confirmations.

          B 1 Reply Last reply
          0
          • M Member 4501940

            Yes, you are so right. I am 'old-school' and use mostly server-side confirmations.

            B Offline
            B Offline
            Brij
            wrote on last edited by
            #5

            :) We should avoid server side postback as much as we can for better performance

            Cheers!! Brij Check my latest Article :Exploring ASP.NET Validators

            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