Interviews2 answers
2 Answers
.ashx files are web-handler files in asp.net programming and define IHttpHandler interface. Whenever an .ashx file is requested, ProcessRequest() method is invoked automatically. ProcessRequest() is a method where we do make changes according to our requirement. Handlers are used in URL routing, Image handling, binary data handling etc. as it support backward compatibility.
Anil KumarPosted Nov 22, 2012, 7:51 PM EST
ASHX files contain HTTP handlers-software modules that handle raw HTTP requests received by ASP.NET. The following code institutes a simple HTTP handler:
|
|
|
|
|
|
<%@ WebHandler Language="C#" Class="Hello"%> |
|
|
|
|
|
Amit DasPosted Jun 20, 2007, 3:46 AM EDT
