哪里是WebResource.axd的 [英] Where is WebResource.axd
问题描述
我要寻找的文件 WebResource.axd的
(以查看其源$ C $ C),但我不能找到它。结果
这是哪里?
I am looking for the file WebResource.axd
(to see its source code) but I can't find it.
Where is it?
推荐答案
个.axd文件通常被实现为的 HTTP处理程序的。他们不存在作为一个ASP.NET网页,而是作为实现的IHttpHandler
接口的类。
.axd files are typically implemented as HTTP Handlers. They don't exist as an ASP.NET web page, but rather as a class that implements the IHttpHandler
interface.
如果您在根看看的Web.config
(%WINDIR%\\ Microsoft.NET \\框架\\版本\\ CONFIG \\ Web.config中
),你会发现下面的条目:
If you look in the root Web.config
(%WINDIR%\Microsoft.NET\Framework\version\Config\Web.config
) you'll find the following entry:
<add path="WebResource.axd" verb="GET" type="System.Web.Handlers.AssemblyResourceLoader" validate="True" />
本项说,嘿,如果一个请求进入 WebResource.axd的
然后使用的的HTTP处理程序 AssemblyResourceLoader
在 System.Web.Handlers
命名空间。
This entry says, "Hey, if a request comes in for WebResource.axd
then use the HTTP Handler AssemblyResourceLoader
in the System.Web.Handlers
namespace.
在code这个类是一个有点冗长,所以我不能张贴在这里,但你可以使用反汇编,如免费的反射查看本类的源$ C $ C。您可以通过使用 NetMassDownloader工具可能得到的原始来源$ C $ c(带注释)。
The code for this class is a bit lengthy, so I can't post it here, but you can use a disassembler like the free Reflector to view this class's source code. You could probably get the original source code (with comments) by using the NetMassDownloader tool.
这篇关于哪里是WebResource.axd的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!