什么是个.axd文件? [英] What is an .axd file?

查看:148
本文介绍了什么是个.axd文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么样的​​目的个.axd 文件服务?

What kind of purpose do .axd files serve?

我知道,这是在 ASP.Net AJAX工具包及其控件使用。我想多了解一下。

I know that it is used in the ASP.Net AJAX Toolkit and its controls. I'd like to know more about it.

我想谷歌搜索,但没有找到获取基本信息。

I tried Googling for it, but could not find getting basic information.

推荐答案

从谷歌

这是个.axd文件是一个HTTP处理程序文件。有两种类型的个.axd文件。

An .axd file is a HTTP Handler file. There are two types of .axd files.


  1. 的ScriptResource.axd

  2. WebResource.axd的

这些都是在运行时,只要您在Web应用程序中使用的ScriptManager生成的文件。这是正在发生,只有当你将它部署在服务器上一次。

These are files which are generated at runtime whenever you use ScriptManager in your Web app. This is being generated only once when you deploy it on the server.

只要把的ScriptResource.axd包含了所有的客户方的JavaScript为Ajax例程。仅仅因为你包括加载它永远不会显示为的ScriptResource.axd脚本文件一个ScriptManager - 而是将仅仅通过的js文件你,如果你引用外部脚本文件发送。如果您在code嵌入那么它可能只是显示为HTML作为标签,code的一部分,但根据该工具包如何处理它取决于如果你code - 可能会或可能不会出现一样一个的ScriptResource.axd。的ScriptResource.axd仅与AJAX介绍,你将永远不会看到它在其他地方

Simply put the ScriptResource.AXD contains all of the clientside javascript routines for Ajax. Just because you include a scriptmanager that loads a script file it will never appear as a ScriptResource.AXD - instead it will be merely passed as the .js file you send if you reference a external script file. If you embed it in code then it may merely appear as part of the html as a tag and code but depending if you code according to how the ToolKit handles it - may or may not appear as as a ScriptResource.axd. ScriptResource.axd is only introduced with AJAX and you will never see it elsewhere

和ofcourse有必要

And ofcourse it is necessary

这篇关于什么是个.axd文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆