Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Asp.NET Handler and Generic Handler

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.

like image 854
Tarik Avatar asked Mar 16 '10 03:03

Tarik


People also ask

What is ASHX handler?

An ASHX file is a webpage that is used by the ASP.NET HTTP Handler to serve user with the pages that are referenced inside this file. The ASP.NET HTTP Handler processes the incoming request, references the pages from the . ashx file, and sends back the compiled page back to the user's browser.

What is HTTP handler in asp net core?

An ASP.NET HTTP handler is a process that runs in response to a request made to an ASP.NET Web application. The most common handler is the ASP.NET page handler that processes . aspx files.

What is a Web handler?

Handlers are Internet Information Services (IIS) components that are configured to process requests to specific content, typically to generate a response for the request resource. For example, an ASP.NET Web page is one type of handler.


1 Answers

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

like image 156
kristian Avatar answered Sep 29 '22 04:09

kristian