This topic is locked

A way to record views in audit table?

3/1/2022 3:11:38 PM
ASPRunner.NET Tips and tricks
M
Mads Østergaard Dynesen author

I'm just starting using ASPrunner.net, and I have a question about if it's possible to record/log what a user is viewing at the website. I have used a audit table to see, when a user edit something or log in and out. However it doesn't record what they were viewing?

Pete K 3/1/2022

There is no built-in way to do this, but it should be pretty easy to code. You can get the URL of the current page by using something like HttpContext.Current.Request.Url. You could access this in the AfterAppInit() event and write it to a table along with the user name and any other info you want to save.

M
Mads Østergaard Dynesen author 3/1/2022

Thanks

However, i'm kind new at this program and general programming. Should I then go into the 'Evenets' area, and choose the table that I want to track views on, and get the URL, and then make a new table where I specify that I want to count views?