2010-03-16 15 views
18

In Visual Studio 2010, quando si dice nuovo elemento, è possibile vedere Asp.NET Handler e Generic Handler. Puoi dirmi qual è la differenza, penso che sia venuto con .NET 4.0 perché non sono riuscito a trovare thins correlati su Google.Gestore Asp.NET e gestore generico

Grazie.

risposta

21

Penso che la tua confusione derivi probabilmente dall'uso della terminologia di Visual Studio.

Un "ASP.NET Handler" è in realtà un gestore HTTP che è "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 "Handler generico" (Ashx) è un tipo di gestore HTTP. I gestori generici sono "default HTTP handler for all Web handlers that do not have a UI and that include the @ WebHandler directive."