webmsgbox

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Vajrala Narendra
    New Member
    • Jun 2007
    • 73

    webmsgbox

    Hi,
    am working on asp.net with vb.net
    how to write code to dispaly webmessagebox, that should contain yes, no options
    suppose if user want to delete a record after clicking delete button i have to display a webmessagebox with yes, no buttons according to the selected button further steps will go..


    Thank you
    Narendra
  • kenobewan
    Recognized Expert Specialist
    • Dec 2006
    • 4871

    #2
    What have you tried so far? Have you received any errors?

    Comment

    • minhnhat2807
      New Member
      • Dec 2007
      • 4

      #3
      Originally posted by Vajrala Narendra
      Hi,
      am working on asp.net with vb.net
      how to write code to dispaly webmessagebox, that should contain yes, no options
      suppose if user want to delete a record after clicking delete button i have to display a webmessagebox with yes, no buttons according to the selected button further steps will go..


      Thank you
      Narendra

      very easy.

      client:
      function Delete()
      {
      var a = confirm("are you sure")
      document.getEle mentById("Hidde nFiled".value = a
      }

      .server

      buttonDelete.at rributes.add("o nclick","Delete ()")
      Delete(HiddenFi eld.value) // write function Delete(Byval b as Boolean)

      Comment

      • jawaharks
        New Member
        • Jan 2008
        • 12

        #4
        you can write a javascript for that.. it will give the confirm() method, which pops a window with a messaage and twoo buttons(ok and delete).

        Comment

        • kunal pawar
          Contributor
          • Oct 2007
          • 297

          #5
          U can use javascript confim() function, but this is not shows "Yes" "NO" option. it will show "OK" "cancel".

          Or u can used vb script to display msg box with "Yes/No" option

          Comment

          Working...