有什么方法可以让我跟踪按钮单击哪个网页。
例如 Default1.aspx button1 点击
然后在我的日志文件中。我的日志文件将记录 button1 在 default1 页面中单击。
是否可以在 global.asax 文件的 beginrequest 事件中执行此操作?请指导我一个解决方案。
这是我的 global.asax 代码
protected void Application_Start(object sender, EventArgs e)
{
// Set logfile name and application name variables
string l4net = Server.MapPath("~/log4Net.config");
log4net.Config.XmlConfigurator.ConfigureAndWatch(new System.IO.FileInfo(l4net));
}
protected void Application_BeginRequest(object sender, EventArgs e)
{
//What should i code here???
}
任何帮助深表感谢