Riddhi Valecha

Riddhi Valecha

  • 429
  • 3.2k
  • 396.4k

Event Logs in asp.net for portal and server

Mar 21 2015 7:27 AM
Hi all...

Once again... In trouble....

Please guide me... How to build event logs in any asp.net c# website ??

Requirement -
1. If a user opens a portal, then the system must capture the page name (index.aspx), the user name, and current time. - Done.

2. If user clicks on any button (say btn_Save, btn_Search), then system much capture the pagename, username, button-id, button-text that was clicked, and time.

In short... How to create such event logs for asp.net website / portals ?

Currently there are 20 web pages in the portal.

Do I need to use System.Diagnostics namespace??
--------------------------------------
Other Point -
I have recently faced an incident.
I had uploaded my published files on the iis server.(Remote Desktop Connection)
The system was running smoothly.
But... One other person from other team entered the server and changed the physical path of my portal.
By this, I got many complaints from the users that the site is not working.
-------
Is there any way in which we can find out who enters the server and make such changes ??
-----
Is there any way in which we can capture the username/windows name and find the activities done on server ??
--
Please guide.

Thank you all in advance...


Answers (13)