Click here to Skip to main content
15,899,937 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi friends,
i have an Web Form named PO.aspx,User makes entry in it and save the records for that particular data.
my requirement is, whenever the Records which was saved previously comes for Update in PO.aspx Web Form and user changes some value in it.
example:
(PO date) Previously old value was '20-07-2012' and after modifying it to '24-07-2012' new value.
then a new record (log) should be maintained in Database table with values like
Username,Oldvalue,Newvalue,UpdatedDate,Comments(Reason for Change).

This should be done for each control in Web Form whose value has been changed by user every time.
how it can be achieved!!!


Regards,
Aamir
Posted
Comments
Sergey Alexandrovich Kryukov 25-Jul-12 1:40am    
And what's the problem? What did you try?
--SA
aamir07 25-Jul-12 1:53am    
i am not getting the proper method by which i can achieve this coz der are different controls in Web Form(textbox,dropdownlist,grdiview)....so i have to check for each control what was it old value and see the new value and if any change then ask the user to fill the reason for it.....on which event should it be perform on Save Click or any controls event
WoodenLegNamedSmith 30-Jul-12 16:51pm    
You're going to need to start out by mapping the controls into the database and assign them an ID. Then you create another table that handles the values of the controls, you would need to time-stamp the value that way when you recall it you just take the value with the most recent date.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900