Asp.NET Handler and Generic Handler

孤街醉人 提交于 2019-12-06 17:07:48

问题


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.

Thanks.


回答1:


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

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."

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."



来源:https://stackoverflow.com/questions/2451882/asp-net-handler-and-generic-handler

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!