Posted on: 10/6/2014 5:37:47 PM | Views : 553

I want to create an audit log of changes made to records in the gridview. I want to track what field was changed; what the original value was; what the new value of the field is; the name of the form; the user name (from the log in credentials); and the datetime for the change.
I have referred to http://www.codeproject.com/Articles/17070/Creating-Audit-Functionality-Using-ASP-NET and found that it does not work. I also have referred to http://forums.asp.net/t/1825728.aspx?Audit+Trail+functionality+for+gridview+edits and was not able to get it to work. The first problem I get is that the code does not capture the primary key value for the record being changed.
Here is the code I have tried based on the second refer ...

Go to the complete details ...