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. Please help....

Please help....

Scheduled Pinned Locked Moved ASP.NET
csharpasp-nethelpannouncement
6 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
    Devkranth Kishore Vanja
    wrote on last edited by
    #1

    hi folks... i am developing a project using Asp.net (2005) i Have a button called CmdEdit . and the caption(Text) will change from edit to Update when clicked on it.. now i need to use the confirmation using javascrpt when he clicks on update... Like Do u want To update and two buttons OK Cancel Totally i need to display a confirm box after he updates and clicks on update button thanks in advance :)

    M N K 3 Replies Last reply
    0
    • D Devkranth Kishore Vanja

      hi folks... i am developing a project using Asp.net (2005) i Have a button called CmdEdit . and the caption(Text) will change from edit to Update when clicked on it.. now i need to use the confirmation using javascrpt when he clicks on update... Like Do u want To update and two buttons OK Cancel Totally i need to display a confirm box after he updates and clicks on update button thanks in advance :)

      M Offline
      M Offline
      Mubashir Javaid
      wrote on last edited by
      #2

      Write javascript function and the call it in button property OnClientClick.

      God Bless you. Always do good to others

      1 Reply Last reply
      0
      • D Devkranth Kishore Vanja

        hi folks... i am developing a project using Asp.net (2005) i Have a button called CmdEdit . and the caption(Text) will change from edit to Update when clicked on it.. now i need to use the confirmation using javascrpt when he clicks on update... Like Do u want To update and two buttons OK Cancel Totally i need to display a confirm box after he updates and clicks on update button thanks in advance :)

        N Offline
        N Offline
        N a v a n e e t h
        wrote on last edited by
        #3

        devkranth wrote:

        now i need to use the confirmation using javascrpt

        return confirm("Are you sure to update");


        My Website | Ask smart questions

        D 1 Reply Last reply
        0
        • N N a v a n e e t h

          devkranth wrote:

          now i need to use the confirmation using javascrpt

          return confirm("Are you sure to update");


          My Website | Ask smart questions

          D Offline
          D Offline
          Devkranth Kishore Vanja
          wrote on last edited by
          #4

          hi thanks for ur reply i am using it OnCLientClick Propety now wannt 2 update based upon the return value in the codebehind

          1 Reply Last reply
          0
          • D Devkranth Kishore Vanja

            hi folks... i am developing a project using Asp.net (2005) i Have a button called CmdEdit . and the caption(Text) will change from edit to Update when clicked on it.. now i need to use the confirmation using javascrpt when he clicks on update... Like Do u want To update and two buttons OK Cancel Totally i need to display a confirm box after he updates and clicks on update button thanks in advance :)

            K Offline
            K Offline
            koolprasad2003
            wrote on last edited by
            #5

            devkranth wrote:

            Re: Please help....

            Please give meaningful subject Always

            devkranth wrote:

            i need to use the confirmation using javascrpt

            write the function and do the following function CallMe() { var K = confirm("Do you want to Update"); if (k) { //Do the code after click on OK } else { //Do the code after click on Cancel } } and call the function onClick event Hope It Helps regards, koolprasad2003:)

            If the message is useful for U then please Rate This message... Be a good listener...Because Opprtunity knoughts softly...N-Joy

            D 1 Reply Last reply
            0
            • K koolprasad2003

              devkranth wrote:

              Re: Please help....

              Please give meaningful subject Always

              devkranth wrote:

              i need to use the confirmation using javascrpt

              write the function and do the following function CallMe() { var K = confirm("Do you want to Update"); if (k) { //Do the code after click on OK } else { //Do the code after click on Cancel } } and call the function onClick event Hope It Helps regards, koolprasad2003:)

              If the message is useful for U then please Rate This message... Be a good listener...Because Opprtunity knoughts softly...N-Joy

              D Offline
              D Offline
              Devkranth Kishore Vanja
              wrote on last edited by
              #6

              hi prasad i want to display the confirm message after he selects the id and updates the data The Flow is as follows 1.user clicks in edit the catpion is changed 2 Update 2.User Selects the id n accoording to the selected id the data is displayed in there respective textboxes 3.User Changes the neccessary data.. 4. When user clicks on the Update Button i need the Confirm Message DO u wantto update?

              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