2010-03-16 18 views
18

विजुअल स्टूडियो 2010 में, जब आप नई वस्तु कहते हैं, तो आप एएसपी.नेट हैंडलर और जेनेरिक हैंडलर देख सकते हैं। क्या आप मुझे बता सकते हैं कि क्या अंतर है, मुझे लगता है कि यह .NET 4.0 के साथ आया क्योंकि मुझे Google पर संबंधित थिन नहीं मिल सका।एएसपी.नेट हैंडलर और जेनेरिक हैंडलर

धन्यवाद।

उत्तर

21

मुझे लगता है कि आपका भ्रम शायद विजुअल स्टूडियो के शब्दावली के उपयोग से आता है।

एक "ASP.NET हैंडलर" वास्तव में एक HTTP हैंडलर जो "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 हैंडलर का एक प्रकार है। जेनेरिक हैंडलर "default HTTP handler for all Web handlers that do not have a UI and that include the @ WebHandler directive."

हैं
संबंधित मुद्दे