Sign In | Register Now About Bytes | Help | Site Map
Connecting Tech Pros Worldwide

Creating audit functionality using ASP

Question posted by: jmartmem (Member) on May 8th, 2008 10:03 PM
Greetings,

I'm looking for suggestions about creating audit functionality for ASP pages.

The ASP page I want to audit is an Update Record Form, which contains a number of fields, such as text boxes and menus. Ideally, I want to know how to create an audit tool that tracks and records the changes of any form fields with their old and new values using an ASP web page

Whatever advice or tutorials you have or can direct me to would be greatly appreciated.

Regards,

- JM
jeffstl's Avatar
jeffstl
Expert
400 Posts
May 9th, 2008
02:17 PM
#2

Re: Creating audit functionality using ASP
Quote:
Greetings,

I'm looking for suggestions about creating audit functionality for ASP pages.

The ASP page I want to audit is an Update Record Form, which contains a number of fields, such as text boxes and menus. Ideally, I want to know how to create an audit tool that tracks and records the changes of any form fields with their old and new values using an ASP web page

Whatever advice or tutorials you have or can direct me to would be greatly appreciated.

Regards,

- JM


From the way you worded this question I am assuming you are talking about tracking the actual data entered into these fields for a particular record.

If that is the case you need to have your database be modeled to store historical records.

This means you would need to have a flag column in your database that marks a record as "historical". Then whenever a record is updated using this form you mentioned, you would have to first update the old record marking it historical, then insert a new record.

This can lead to complications and other various changes in your system depending on how many tables this form is related to. You may also want a "Last User Updated" field and Last Date Updated field in your database to log the user who made the changes if you don't have one already.

I can help if needed but the main starting point will be to create a new column in your database for flagging records as historical ones. Also if I read your question right.

Reply
jhardman's Avatar
jhardman
Moderator
2,263 Posts
May 9th, 2008
06:01 PM
#3

Re: Creating audit functionality using ASP
Quote:
I can help if needed but the main starting point will be to create a new column in your database for flagging records as historical ones. Also if I read your question right.

...or a column that lists version number, always assuming the highest number is the most recent.

Jared

Reply
Reply
Not the answer you were looking for? Post your question . . .
189,847 Experts ready to help you find a solution.
Sign up for a free account, or Login (if you're already a member).

Latest Articles: Read & Comment
Top ASP Forum Contributors