【发布时间】:2012-09-03 03:50:13
【问题描述】:
有什么方法可以让我追踪按钮点击了哪个网页。
例如 默认1.aspx 按钮1点击
然后在我的日志文件中。我的日志文件将记录该按钮 1 在默认页面中单击。
是否可以在 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???
}
非常感谢任何帮助
【问题讨论】: