的.aspx VS ashx的主要区别 [英] .aspx vs .ashx MAIN difference

查看:495
本文介绍了的.aspx VS ashx的主要区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么的.aspx和.ashx的页面之间的差异。
我现在用的ashx当我需要处理,从code叫和响应返回请求。但我还是希望有更多的技术解答吧。

what are the differences between .aspx and .ashx pages. I use ashx now when I need to handle a request that called from code and return with a response. but I still want more technical answers please.

推荐答案

是一种特殊情况的处理程序。

Page is a special case handler.

通用网络处理器( *。ashx的,基于扩展处理器)是没有一个用户界面,所有的Web处理程序的默认HTTP处理程序包括 @WebHandler 指令。

Generic Web handler (*.ashx, extension based processor) is the default HTTP handler for all Web handlers that do not have a UI and that include the @WebHandler directive.

ASP.NET页面的处理程序( *。ASPX )是所有ASP.NET页面的默认HTTP处理程序。

ASP.NET page handler (*.aspx) is the default HTTP handler for all ASP.NET pages.

在内置的HTTP处理程序也有Web服务处理器( *。ASMX ),并跟踪处理程序(的trace.axd

Among the built-in HTTP handlers there are also Web service handler (*.asmx) and Trace handler (trace.axd)

这是ASP.NET HTTP处理程序是进程
  (经常被称为
  在响应运行到一个端点)
  要求到ASP.NET Web制作
  应用。最常见的处理程序
  是一个ASP.NET页面处理程序
  流程.aspx文件。当用户
  请求.aspx文件,请求是
  通过该页面在页面处理
  处理程序。

An ASP.NET HTTP handler is the process (frequently referred to as the "endpoint") that runs in response to a request made to an ASP.NET Web application. The most common handler is an ASP.NET page handler that processes .aspx files. When users request an .aspx file, the request is processed by the page through the page handler.

接下来的图像是说明了这一点:

The next image is illustrates this:

你的第二个问题:

确实ASHX处理比更多的连接
  ASPX?

does ashx handle more connection than aspx?

不这么认为(但是可以肯定的,至少不小于)。

Don't think so (but for sure, at least not less than).

这篇关于的.aspx VS ashx的主要区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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