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. delete Confirm msg in datagrid

delete Confirm msg in datagrid

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

    hi all, I got some javascript for confirm message _________________ function confirmMsg(msg) { var x; x =window.showModalDialog('ConfirmMsg.aspx?CfMsg='+ msg + ', '', 'dialogWidth:500px;dialogHeight:200px'); if (x=='Y') return true; else return false; } _____________________ i am sending the parameter string, but the query string is not getting the value.. can any one check the syntax, and correct me that how i to send query string... thanking you all.. I am requesting if any body having a message box which can show "yes, no" kind of buttons, and after yes only i have to perform the delete operation.. If any one having pls. give me some info.. thanks to u all..

    R S 2 Replies Last reply
    0
    • S Smiles74

      hi all, I got some javascript for confirm message _________________ function confirmMsg(msg) { var x; x =window.showModalDialog('ConfirmMsg.aspx?CfMsg='+ msg + ', '', 'dialogWidth:500px;dialogHeight:200px'); if (x=='Y') return true; else return false; } _____________________ i am sending the parameter string, but the query string is not getting the value.. can any one check the syntax, and correct me that how i to send query string... thanking you all.. I am requesting if any body having a message box which can show "yes, no" kind of buttons, and after yes only i have to perform the delete operation.. If any one having pls. give me some info.. thanks to u all..

      R Offline
      R Offline
      RaviJJain
      wrote on last edited by
      #2

      you should use the following way add attributes on the delete button as btndelete.attributes.add("onCLick","window.confirm('are You Sure to delete');") when user clicks 'Yes' it will proceed furthor otherwise it wont proceed on pressing 'No' regards ravi jain :)

      S 1 Reply Last reply
      0
      • R RaviJJain

        you should use the following way add attributes on the delete button as btndelete.attributes.add("onCLick","window.confirm('are You Sure to delete');") when user clicks 'Yes' it will proceed furthor otherwise it wont proceed on pressing 'No' regards ravi jain :)

        S Offline
        S Offline
        Smiles74
        wrote on last edited by
        #3

        Thank you ravi for you reply.. My problem is that window.confirm is havinf "OK, CANCEL".. I need ""YES, NO" kind of stuff. Previously i used this, but now my client is asking for YES No kind.. If you have any idea.. pls. let me know.. Thank you..

        M 1 Reply Last reply
        0
        • S Smiles74

          Thank you ravi for you reply.. My problem is that window.confirm is havinf "OK, CANCEL".. I need ""YES, NO" kind of stuff. Previously i used this, but now my client is asking for YES No kind.. If you have any idea.. pls. let me know.. Thank you..

          M Offline
          M Offline
          minhpc_bk
          wrote on last edited by
          #4

          Hi there, AFAIK, you cannot change these values, your chance is to use third party controls like Telerik's one or some posted here at CP.

          1 Reply Last reply
          0
          • S Smiles74

            hi all, I got some javascript for confirm message _________________ function confirmMsg(msg) { var x; x =window.showModalDialog('ConfirmMsg.aspx?CfMsg='+ msg + ', '', 'dialogWidth:500px;dialogHeight:200px'); if (x=='Y') return true; else return false; } _____________________ i am sending the parameter string, but the query string is not getting the value.. can any one check the syntax, and correct me that how i to send query string... thanking you all.. I am requesting if any body having a message box which can show "yes, no" kind of buttons, and after yes only i have to perform the delete operation.. If any one having pls. give me some info.. thanks to u all..

            S Offline
            S Offline
            saravanan05
            wrote on last edited by
            #5

            hi u refer WWw.w3schools.com javascript tutorial regards saravanan;P

            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