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. General Programming
  3. WPF
  4. Yes/No Dialog Box for saving data in Silverlight...Urgent!!!

Yes/No Dialog Box for saving data in Silverlight...Urgent!!!

Scheduled Pinned Locked Moved WPF
question
4 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
    salon
    wrote on last edited by
    #1

    Hi All, I want to show one dialog box when user closes the browser. I have added the code in Application_Exit :

    HtmlPage.Window.Confirm("Do u want to save your data?");

    So that It shows me the OK/Cancel box, which is fine for me. But I want the event for YES so that if user says YES then I could save the data and if he says NO then I do not save the data. Can anybody have any idea????

    S P 2 Replies Last reply
    0
    • S salon

      Hi All, I want to show one dialog box when user closes the browser. I have added the code in Application_Exit :

      HtmlPage.Window.Confirm("Do u want to save your data?");

      So that It shows me the OK/Cancel box, which is fine for me. But I want the event for YES so that if user says YES then I could save the data and if he says NO then I do not save the data. Can anybody have any idea????

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

      Got the solution from http://bdotnet.in/forums/p/1089/2271.aspx[^]

      1 Reply Last reply
      0
      • S salon

        Hi All, I want to show one dialog box when user closes the browser. I have added the code in Application_Exit :

        HtmlPage.Window.Confirm("Do u want to save your data?");

        So that It shows me the OK/Cancel box, which is fine for me. But I want the event for YES so that if user says YES then I could save the data and if he says NO then I do not save the data. Can anybody have any idea????

        P Offline
        P Offline
        Pete OHanlon
        wrote on last edited by
        #3

        I'm pleased that you got the solution to your problem, but could you please refrain from using Urgent in posts. These are volunteer only forums, and people will get to your problem when they have time.

        "WPF has many lovers. It's a veritable porn star!" - Josh Smith

        As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.

        My blog | My articles | MoXAML PowerToys | Onyx

        M 1 Reply Last reply
        0
        • P Pete OHanlon

          I'm pleased that you got the solution to your problem, but could you please refrain from using Urgent in posts. These are volunteer only forums, and people will get to your problem when they have time.

          "WPF has many lovers. It's a veritable porn star!" - Josh Smith

          As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.

          My blog | My articles | MoXAML PowerToys | Onyx

          M Offline
          M Offline
          Mark Salsbery
          wrote on last edited by
          #4

          I'll provide a paid support contract :)

          Mark Salsbery Microsoft MVP - Visual C++ :java:

          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