prompt to save changes in datagrid in editmode if user tries to navigate away

Discussion in 'ASP .Net Datagrid Control' started by tafs7, Dec 29, 2003.

  1. tafs7

    tafs7 Guest

    Hello,

    I have a custom datagrid control that works great. But I was thinking
    about adding some functionality to it. Currently, I use the datagrid
    to display one record at a time, and with item templates, if you click
    the edit button, the datagrid becomes a nice form to make changes.
    Kinda like a big rolodex, and as you page you flip thru each record
    individually.

    My question is this: how can I have some kind of server side script
    (and javascipt) on the pages which contain the datagrid (quite a
    few...), so that it can detect if the grid is in edit mode and will
    confirm if the user wants to save the changes made, before clicking
    away to another link on the page that is not the 'save' link? This
    will be mimicking the windows app 'Exit without saving?' popup, so if
    users make changes to a record and forget to push the save button, and
    decide to click somewhere else on the page, it will tell them...hey
    you need to save!

    If you anyone has any ideas on how to implement this, please let me
    know. I appreciate all of your help.

    Regards,
    Thiago
    Web Developer
    tafs7, Dec 29, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. tafs7
    Replies:
    0
    Views:
    507
    tafs7
    Dec 29, 2003
  2. Mel
    Replies:
    10
    Views:
    3,097
    Sailaja Appi
    Feb 13, 2009
  3. tafs7
    Replies:
    2
    Views:
    181
  4. tafs7
    Replies:
    2
    Views:
    217
  5. tafs7
    Replies:
    2
    Views:
    164
Loading...

Share This Page