Hi all, i'm new to vb.net and i meet some problem regarding with some coding.
The case is:
I have a datagrid on a wins form to let end-user to do some data maintenance and update the database, and i have no problem with that.
Along the way, i need to do a audit-trail to log all the changes to the table, and that's still ok to me.
i'm using diffgram of the dataset to trap the chances, and i convert the diffgram into a long string and store in my auditTrailTable as text.
But the problem is, the diffgram text is in so unreadable format, that makes me wanna do some extraction from the diffgram so that i can get only the value like "column name", "new value", and "before value", and with all the diffgram tags shreded off.
And also, i want the audittrail function to be a more generic(global function to cater the data maintenance) to handle any different tables.
I'd search everywhere from the net and i 'd tried all the xml-related method but i jz dun get the way to achieve this.
So i would like to see is there anyone here know how to do this, and if u guys think there are any ways to perform the auditTrail in a better way, pls let me know ok??
So, i hope u guys are able to help me out in this matter. Million thanks in advanced.
p/s:i am quite a newbie, so if possible, pls explain in a more dummy way. Sorry for this
regards
wancherng
The case is:
I have a datagrid on a wins form to let end-user to do some data maintenance and update the database, and i have no problem with that.
Along the way, i need to do a audit-trail to log all the changes to the table, and that's still ok to me.
i'm using diffgram of the dataset to trap the chances, and i convert the diffgram into a long string and store in my auditTrailTable as text.
But the problem is, the diffgram text is in so unreadable format, that makes me wanna do some extraction from the diffgram so that i can get only the value like "column name", "new value", and "before value", and with all the diffgram tags shreded off.
And also, i want the audittrail function to be a more generic(global function to cater the data maintenance) to handle any different tables.
I'd search everywhere from the net and i 'd tried all the xml-related method but i jz dun get the way to achieve this.
So i would like to see is there anyone here know how to do this, and if u guys think there are any ways to perform the auditTrail in a better way, pls let me know ok??
So, i hope u guys are able to help me out in this matter. Million thanks in advanced.
p/s:i am quite a newbie, so if possible, pls explain in a more dummy way. Sorry for this
regards
wancherng