Click here to Skip to main content
15,905,563 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi all, i need help with determining if a text box has changed or not, and if it has it must update the old value and the new value in a MySQL table, i got a audit table that will store all these changes

for example

tbfirst_name = john and then changes to jane

now if the user changes that textbox and submits the new values i need to pick up the old value (john) and store that in the old value cell aswell as the new value (jane) and store that in the new value cell, im just confused on how im going to pick up if the user has changed their info or not

Wes
Posted
Comments
Jim Jos 18-Oct-12 4:19am    
You could use the TextChanged event of the asp.net textbox. If it is a normal text box you could copy the value in another hidden field then compare the value with the text box value whether it is chagned or not

1 solution

You just create the class of the user which contains all the field for the form.
-Initially create the object of that class and populate the data into it and on the respective box also.
-While saving check the value of the object properties and save according as per requirement.
 
Share this answer
 

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