为什么Application_BeginRequest会执行两次

时间:2016-09-08 16:14:35   收藏:0   阅读:1452

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

技术分享

原文:http://www.cnblogs.com/micro-chen/p/5853277.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!