Generic handlers are the .NET components that implement the System.Web.IHttpHandler interface. Any class that implements the IHttpHandler interface can act as a target for the incoming HTTP requests.
Questions tagged [generic-handler]
161 questions
0
votes
1 answer
Simultaneous threads only one seems to function at a time?
Threads a + b, (both are trying to delete files).
a gets called first, then b while a is still running.
b deletes the file successfully but a doesn't.
If I run a on its own, a's file deletes fine.
When I step through the code I can see that a's…

Oppdal
- 591
- 3
- 7
- 15
0
votes
1 answer
convert context.Request.Params to integer and string
I am using jquery ajax with generic handle to submit my record to sql server 2012 database but my code is not converting context.Request.Params["city"] to integer
This is my generic handler code:
if (context.Request.Files.Count > 0)
{
…

Laraib
- 17
- 1
- 7
0
votes
0 answers
C# ASP Generic Handler - problems with response inside of a callback
I wanna send a server sent event back to a client each time when a new event is triggered.
But inside of my callback I call a static method named commonEventBuffer.sendIncommingEvent() and I am passing the text of the message (which should be sent…

d s
- 237
- 1
- 2
- 11
0
votes
1 answer
Generic handler (ashx) not rising with jquery autocomplete plugin
My generic handler is not being called when using autocomplete,
I have this in my .aspx page.
$(document).ready(function () {
$("#test").autocomplete("Handlers/MyHandler.ashx");
}
with this files included jquery-1.4.2.min.js and…

k-dev
- 1,657
- 19
- 30
0
votes
2 answers
How to reference deserialized object properties received from javascript in C# generic handler?
I have a JavaScript script that makes a jQuery AJAX call, and passes a serialized javascript object in the "data" property:
data: { Specific: JSON.stringify({DAY: "1", DEP: "2", CARRIER: "3",
FLT: "4", LEGCD: "5"})
It is received in a C# Generic…

KWallace
- 1,570
- 1
- 15
- 25
0
votes
1 answer
asp.net generic handler not sending images for the first time
I created a generic handler (.ashx) in ASP.Net to load images from database & send it to browser.
I am using a colorbox to display this in a separate page which only has an image control & calls this handler via ImageUrl property.
For the first…

Abdul Rehman Sayed
- 6,532
- 7
- 45
- 74
0
votes
1 answer
IE errors on file download through .ashx file with caching turned off
I have a simple 'file download' generic handler which sets the response contenttype and headers before sending the file through the same response.
I also have Response.Cache.SetCacheability(HttpCacheability.server) set in the global.asax.
As I have…

Tabloo Quijico
- 700
- 2
- 10
- 26
0
votes
0 answers
Visual studio 2005 web From application can't support Generic Handler
Is Dot Net version 2.0 support generic handler? I am trying to retrieve binary image from database to gridview but it's not showing any image. Or not showing me any error.
Gridview Photo Cloumn :
…

Khan Ataur Rahman
- 33
- 10
0
votes
1 answer
Anonymous authentication using generic asp.net handler (*.ashx)
I have an asp.net webforms application that has windows authentication enabled. I need to enable anonymous authentication on a folder “Test” in the website which contains images . I did that by adding
…

papfan
- 191
- 2
- 12
0
votes
1 answer
File Upload Get Extra Parameters In Generic Handler
I've been pulling my hair out on this. I need to pass a parameter to the ashx for my file upload. I'm using blueimp for this. I've seen on many different posts that I'm to use the "formData" parameter, to accomplish this, but I have no idea how to…

Vandel212
- 1,074
- 1
- 13
- 28
0
votes
1 answer
Uploading Files using InputStream in Generic Handler failes to save Headers or it fails to keep its actual content type
Im using a JQUERY based file uploader and obviously as other file uploaders it posts the data to server. Am using Generic handler to handle the data.
When I use
Context.request.files(0).saveAs(mpath)
It works fine. If its image, it keeps as image…

Sandeep Thomas
- 4,303
- 14
- 61
- 132
0
votes
0 answers
asp.net MVC send parameters with handler.ashx to winforms c#
hi i have send string parameters in my MVC view javascript button with ajax look like this;
**
$.ajax({
url: 'myGenericHandler.ashx',
type: 'GET',
data: {'param1':'parameter','param2':'parameter2'},
…

umit alp
- 1
- 1
0
votes
2 answers
How to open image in new tab from generic handler?
I managed to display the binary image from database to image control using generic handler. I want to open the image on new tab or copy it's link address using right click from the mouse. But the URL used is the address of the generic…

pemaustria
- 167
- 1
- 2
- 15
0
votes
2 answers
C# ASP.NET MVC2 Routing Generic Handler
Maybe I am searching the wrong thing or trying to implement this the wrong way. I am dynamically generating an image using a Generic Handler. I can currently access my handler using:
ImageHandler.ashx?width=x&height=y
I would much rather access my…

Daniel Draper
- 259
- 3
- 15
0
votes
1 answer
How to deploy a Generic HTTP Handler on DotNetNuke
I have created a Generic Handler using Studio 2012. I'm able to call it on my local machine. When I move it up to my IIS 8.5 server I'm getting a message saying "An Internal Server Error has occurred" The event viewer lists the error code as…

Martin Muldoon
- 3,388
- 4
- 24
- 55