How to confirm user that it did not save data to DB in form view?

Last post 10-23-2006 5:53 AM by thinhhangdieu. 2 replies.

Sort Posts:

  • How to confirm user that it did not save data to DB in form view?

    10-20-2006, 11:46 PM

    Hi all,

    I have a form view to input DB or modify the record from DB, which a button called "Save to DB" to insert or update the current record in form view.

    then when user navigation to another page or close the page,

    I don't know how to confirm  user there was button Save clicked or not, like windows based,

    like when you use MS Word to make a new document or modify an old document.

    Is there any way to do that? 

    Thank for your attention!

    Filed under: ,
  • Re: How to confirm user that it did not save data to DB in form view?

    10-22-2006, 11:23 PM
    Answer
    • Loading...
    • rexlin
    • Joined on 07-17-2006, 8:43 AM
    • Posts 1,751

    Hi,thinhhangdieu:

    I suppose that you can add a seesion or a cookie to contains the value of whether the update button has been clicked or not. And you can check the value in the code bind or Javascript.

    http://www.javascript-coder.com/window-popup/javascript-window-close.phtml

    http://jennifermadden.com/javascript/windowClose.html



    Best Regards,
    __________________________________________________
    Sincerely,
    Rex Lin
    Microsoft Online Community Support

    This posting is provided "AS IS" with on warranties, and confers no rights.
  • Re: How to confirm user that it did not save data to DB in form view?

    10-23-2006, 5:53 AM

     Hi rexlin,

    Thank for your times, I'll try it,

    Best Regard!

    thinh

Page 1 of 1 (3 items)
Microsoft Communities
Page view counter