Informing the user that the data has changed

Last post 08-26-2008 10:18 AM by janis. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 08-25-2008 5:16 PM

    Informing the user that the data has changed

    Hi,

    I have an ADO.NET application. When an update occurs, instead of finding the row to update by querying only on the columns that comprise the primary key, I need to query on all columns of the table that may have been changed since I did the read. In the case where a row has changed, the update will fail. I need a way of informing the user that the data has changed since the time that He/she read it, and asking her if He/she’d like to overwrite the changes, cancel her update, or examine the differences between her data and the new data in the database. What can I do to get this job done? Please give me some tips.
     

  •  Advertisement

    Featured Advertisement

     
  • 08-26-2008 10:18 AM In reply to

    • janis
    • Top 50 Contributor
    • Joined on 07-16-2008
    • USA
    • Wannabe Slacker
    • Points 808

    Re: Informing the user that the data has changed

    in the table you can add a new colum where you save the timestamp in it..

    get the timestamp"time last time it is change".. put it somewhere ..mm.. maybe hiddenfield..

     

    user push submit.. hiddenfield check timestamp.. is the same then do  update/insert

    if not  respons.write("error"); respson.end();

Page 1 of 1 (2 items)