Asp.NET处理程序和通用处理程序 [英] Asp.NET Handler and Generic Handler

查看:177
本文介绍了Asp.NET处理程序和通用处理程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Visual Studio 2010中,当您说新项目时,可以看到Asp.NET处理程序和通用处理程序.您能告诉我有什么区别吗,我认为它是.NET 4.0附带的,因为我在Google上找不到相关的精简版.

In Visual Studio 2010, when you say new Item, you can see Asp.NET Handler and Generic Handler. Can you tell me what's the difference, I think it came with .NET 4.0 because I couldn't find related thins on Google.

谢谢.

推荐答案

我认为您的困惑可能来自Visual Studio对术语的使用.

I think your confusion probably comes from Visual Studio's use of terminology.

"ASP.NET处理程序"实际上是一个HTTP处理程序,它是"响应ASP.NET Web应用程序的请求而运行的进程.最常见的处理程序是处理.aspx文件的ASP.NET页处理程序.当用户请求.aspx文件时,请求将由页面处理程序."

An "ASP.NET Handler" is actually a HTTP handler which is "the process that runs in response to a request that is 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 handler."

通用处理程序"(.ashx)是一种HTTP处理程序.通用处理程序是"所有没有UI和Web的Web处理程序的默认HTTP处理程序.包括@ WebHandler指令."

A "Generic Handler" (.ashx) is a type of HTTP handler. Generic handlers are the "default HTTP handler for all Web handlers that do not have a UI and that include the @ WebHandler directive."

这篇关于Asp.NET处理程序和通用处理程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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