为什么Application_BeginRequest会执行两次

   大家也看到了,很奇怪的是我们明明就请求了一个页面,页面中也没有其他的图片请求。为什么Application_BeginRequest会被执行了两次呢?!既然他请求,那我们看看他到底在请求什么就是了?在Application_BeginRequest代码中将”HttpContext.Current.Request.Path”记录显示文件中。然后执行显示如下:

posted @ 2016-09-08 15:37  特洛伊-Micro  阅读(814)  评论(0编辑  收藏  举报