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

Calling an ashx handler with jquery causes form action to post back to it

I'm calling an ashx handler with jquery ajax: $.ajax({ type: "GET", url: "handlers/getpage.ashx?page=" + pageName, dataType: "html", success: function (response) { $('.hidden-slide-panel').append(response); }); However…
User101
  • 748
  • 2
  • 10
  • 29
0
votes
1 answer

Desperately need to get a HttpHandler in place for references to a js file

Can only seem to find articles that discuss using ashx files to implement a httphandler but I need to handle a reference to a particular js file - not the ashx. I have the HTTPHandler in place and my config file entry looks like this (the config in…
user1017882
0
votes
2 answers

ASP.NET Serving Word Documents

I have an application that has a subfolder called "Docs" (actually a virtual directory) where I keep all of my word documents. I don't want these documents to be accessed by any unauthenticated users but for some reason regardless of what I put in…
Chris
0
votes
1 answer

ASP.NET Request.Url is repeating the URL 3 times

I have a HttpHandler that is called whenever an image extension is accessed. This is what I have in the HttpHandler as a simple test: public void ProcessRequest(HttpContext context) { …
Daniel T.
  • 37,212
  • 36
  • 139
  • 206
0
votes
1 answer

httphandler is never hit

I am using HttpHandler to retrieve image from database and then use the Handler as ImageUrl in an Image web control on my web page (aspx). The code is shown below. But it does not work and so far I could not figure out why. The issue is HttpHandler…
0
votes
1 answer

AjaxToolkit Asp.net 3.5 Sys Not Defined

I am trying to use the AjaxToolkit for a Asp.net 3.5 project. I have an existing project that I added the ajax configuration using this link http://www.asp.net/ajax/documentation/live/ConfiguringASPNETAJAX.aspx but I am getting a javascript error of…
atrljoe
  • 8,031
  • 11
  • 67
  • 110
0
votes
0 answers

Custom handler failing to work due to Request Filtering

This is in IIS express. public class FooHandler : HttpTaskAsyncHandler { public override async Task ProcessRequestAsync(HttpContext context) { var val = await new FooRequest().ProcessRequest(); context.Response.Write(val); …
DarthVader
  • 52,984
  • 76
  • 209
  • 300
0
votes
0 answers

Inject JavaScript from async method in generic handler

In my generic handler I perform an asynchronous HTTP POST using RestSharp and then display some html to the user before waiting for the POST request to come back. Then once the Http Response comes back I would like to display a message by injecting…
alexp
  • 23
  • 3
0
votes
1 answer

HttpHandler issue, Retrieving image

The following HttpHandler is to retrieve image from database. When I initially tested it it was working fine. but now the problem is that it still retieve image but does not display it in image control that is in Listview. `public void…
azam
  • 205
  • 4
  • 20
0
votes
1 answer

using fancy box and httphandler to load images

I am using JQuery fancybox for photos. I want to load the images from database using HttpHandler but can not get the image. my code for the jquery $(document).ready(function(){ $('#gallery a').fancybox(); }); asp.net code
azam
  • 205
  • 4
  • 20
0
votes
3 answers

How to get trace output added to context.response in httphandler?

I've enabled trace pageoutput="true" in my web.config and I like the easy way it provides of seeing all this stuff at the bottom of the page. I'd like to get the same output from trace at the bottom of the output from my httphandler. Is there a way…
John Adams
  • 4,773
  • 25
  • 91
  • 131
0
votes
2 answers

How to validate jQuery AJAX call ASP.net

I have a web application where I have used http-handlers and jQuery for AJAX call. Now the problem is user can type the same URL in the browser which is generated by the jQuery and operation is being performed. Can I send some token with the query…
शेखर
  • 17,412
  • 13
  • 61
  • 117
0
votes
1 answer

Is there any human verification mechanism as httphandler for Asp.net Mvc?

I need StackExchange style human verification mechanism. If client makes more than y requests per x seconds than 1) store "the request", 2) show human verification. If client passes human verfication call "stored request". But it must be global…
Oguz Karadenizli
  • 3,449
  • 6
  • 38
  • 73
0
votes
1 answer

Session getting cleared after file download using handler

In our project we have got a admin application and a client application. The admin application is used to manage all clients. So when i logged in to server application , the admin credentials are saved in session. After that i accessed client…
Mahesh KP
  • 6,248
  • 13
  • 50
  • 71
0
votes
1 answer

Is an ashx handler file required for each directory?

I seem to remember issues with the ashx handler not being picked up when aspx files resided in subfolders in IIS6. Is this the case? I've been just playing with the configurable solution which allows the handler be configured in the web.config…
learnerplates
  • 4,257
  • 5
  • 33
  • 42