Questions tagged [httphandler]

HttpHandlers are classes that implement the IHttpHandler and IHttpAsyncHandler interfaces. This section describes how to create and register HttpHandlers and provides examples of a synchronous handler, an asynchronous handler, and a handler factory.

ASP.NET Request Processing

Introduces ASP.NET handling of HTTP requests.

Creating HttpHandlers

Discusses the creation of synchronous and asynchronous HttpHandlers.

Registering HttpHandlers

Describes how ASP.NET is configured to call an HttpHandler.

HttpHandler Factory

Describes how to generate a new handler instance for each HTTP request.

Related Sections

HTTP Runtime Support

Provides an overview of how to use IHttpModule and IHttpHandler interfaces. 

HttpModules

Provides an overview of HttpModules. 
1249 questions
0
votes
2 answers

Prevent misuse of ASP.net Handler

When a customer signs up for a site, we want to let them know whether a username/email is available for use. We have a httphandler that serves the purpose of feeding a jquery script that showsthe customer whether or not their desired username/email…
Haldrich98
  • 379
  • 3
  • 13
0
votes
1 answer

How to Load dynamic Image from httpHandlers in C#

I've got an ASP.NET application with a library that generates an Image. It is set up as follows: In the Web.config I have a declaration in the section like so:
user1048281
  • 233
  • 1
  • 4
  • 16
0
votes
1 answer

HTTPHandler for all files in directory

I have created an HTTPHandler to handle all files within a certain folder ("Files"). When i run it locally from Visual Studio it works fine. However when i deploy it on the server (IIS 7, Classic Mode), the handler is not firing for files of types…
ZiggY
  • 111
  • 1
  • 9
0
votes
2 answers

.Net Custom Extension for HttpHandler

I have an HttpHandler, registered it with this in system.webServer/handlers (And also in system.web/httpHandlers forr IIS6) And it works, however, we want to…
CaffGeek
  • 21,856
  • 17
  • 100
  • 184
0
votes
4 answers

How can I share a variable value between classic asp, .NET and javascript?

I've created an IHttpHandler in .NET C# which returns pieces of html to a classic asp page. The classic asp page communicates with the IHttpHandler through basic http requests using ServerXMLHTTP in vbscript or Ajax Calls in JavaScript. Now, I need…
Ben
  • 2,365
  • 4
  • 22
  • 29
0
votes
1 answer

Debug error in HTTPHandler : Server side-error occured on sending debug HTTP request

Tool: Visual Studio 2003 Enterprise Architect , ASP.net WebForms Language: C# Hello Guys, I have just implemented HttpHandler for the first time ,I thought I was going ok ,but I'm facing this error Error Message: Error while trying to run poject:…
DayTimeCoder
  • 4,294
  • 5
  • 38
  • 61
0
votes
1 answer

What is the difference between ICallBackEventHandler and HTTPHandler?

When we write our own custom HTTPHandlers aren't they behave the same way as ICallBackEventHanlder does? we use both to make ajax calls from our web page, isn't this correct? or my understanding wrong, I wont doubt if it is :( Obviously HTTPHandlers…
MOZILLA
  • 5,862
  • 14
  • 53
  • 59
0
votes
1 answer

How to upload file to network path in http handler ashx?

I tried to upload file to a network path with following codes for silverlight app: public void ProcessRequest (HttpContext context) { //..... using (FileStream fs = File.Create(@"\\Server\Folder\" + filename)) { byte[] buffer =…
KentZhou
  • 24,805
  • 41
  • 134
  • 200
0
votes
1 answer

Http handler for classic ASP application for introducing a layer between client and server

I've a huge classic ASP application where in thousands of users manage their company/business data. Currently this is not multi-user so that application users can create users and authorize them to access certain areas in the system. I'm thinking of…
JPReddy
  • 63,233
  • 16
  • 64
  • 93
0
votes
1 answer

Setting Autorization rules for ashx handler in ASP.NET MVC 3 application

I am implementing a javascript file upload functionality in my MVC 3 application and therefore I need to use Http Handler (.ashx) to allow large file upload. Now I need to somehow forbid unauthenticated users to call handler's methods. If I had a…
Maxim V. Pavlov
  • 10,303
  • 17
  • 74
  • 174
0
votes
1 answer

File upload not triggering handler?

I'm not sure why, but my handler isn't getting triggered. (I'm still very new to Silverlight by the way.) I was following the tutorial here. I'm not sure what I did wrong... Thanks. [Using Silverlight 3.0, VS2008] MainPage.xaml
Ber53rker
  • 1,036
  • 3
  • 17
  • 26
0
votes
2 answers

Is it possible to emulate an ftp server?

We have devices that can sync their data with an ftp server. Each device should contain their own set of data (video files). We do not want to duplicate this data for each device. I was thinking along the lines of faking the ftp file list repsonse…
Sjors Miltenburg
  • 2,540
  • 4
  • 33
  • 60
0
votes
1 answer

HttpHandler implementation

I have implemented a custom HttpHandler for my website which will redirect the page to a specific page if the page is in a list. So far the redirection is working fine but the issue is the content of the final page goes blank. Code From My…
mahfuz01
  • 453
  • 4
  • 20
0
votes
0 answers

.Net Async Page Declaration set to true as the default, are there performance issues with this?

I have an ecommerce site and on the final checkout page when the customer clicks "Place Order" I want to send the order confirmation email using SmtpClient SendAsync: SmtpClient client = new SmtpClient(); client.SendAsync(mailMessage, null); But it…
adam
  • 3,498
  • 6
  • 34
  • 46
0
votes
1 answer

Creating HTTP Handler

can anyone tell me how to create Custom Hander (.ashx) file. Requirement: When a request come to my application for a .pdf, I want to invoke that .ashx handler. The .ashx handler will have logic to show the file or not. My incoming path would be…
shakti
  • 191
  • 1
  • 8
  • 21