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
1
vote
0 answers
Closing generic handlers before logging and other functionalities
I am working on a high volumne API that needs to provide substantial logging for reporting purposes. In order to limit the effect of this logging functionality to the api users, I would like to finish the request, and then start logging all the…

Marty Trenouth
- 3,712
- 6
- 34
- 43
1
vote
2 answers
Get Username with ASP.NET Generic Hanlder
I'm trying to get username of currely logged in user by ASP.NET Generic Handler (.ashx). But the username is always nothing even though the user is currently logged in.
Here's my Generic Handler class:
Imports System.Web.SessionState
Public…

Narazana
- 1,940
- 15
- 57
- 88
1
vote
2 answers
jQuery: Calling a function from AJAX request
I'm trying to call a function when I get success from my ajax call, but it's not working. This is what I've tryed so far.
function dtMRPReasonCode(dt) {
var data = null;
jQuery.ajax({
type: "POST",
data: {},
url:…

Eder
- 1,874
- 17
- 34
1
vote
1 answer
PHP fopen receiving Continue 100 and fail
Having a problem with trying to do an fopen on php. I'm sending across a data set of about 300kb to a Generic Handler (.ashx file). A solution on either the .Net or PHP side would be welcome. The code I'm using to send:
function DoPostRequest($url,…

David Archer
- 2,008
- 4
- 26
- 31
1
vote
1 answer
How to open files stored as bytes in database with http handler?
I have my files stored as bytes in my database.
How to open files like this with its application (like microsoft office, acrobat reader ,...etc) or download it.
I want to do this with generic handler :
public class Attachement : IHttpHandler,…

Anyname Donotcare
- 11,113
- 66
- 219
- 392
0
votes
1 answer
It could be possible to create an email addon to convert an email address in a generic soap client?
What i mean?
Imagine:
From:me@mydomain.com
To:webservice_client@gmail.com
Subject:Our_wsdl_file_here
Body:Soap Body Here
And receive response to my email.
It could be possible to create an addon to gmail or something like that to do…

jechaviz
- 551
- 1
- 9
- 23
0
votes
0 answers
ASP.net Generic Handler, JSONP and Invalid Label Error
I am trying to get some data from a generic asp.net handler on am externally hosted site (though this is our company's web site and server). I have to display the data returned from this handler. jQuery is successfully making call to the handler…

TheVillageIdiot
- 40,053
- 20
- 133
- 188
0
votes
1 answer
Generic Handler Jquery Post error
I am getting this error (at the bottom) when I try to run this code using a generic handler
Jquery Code
$.post("CheckUserName.ashx?username=Aaron902",
function (result) {
…

scripter78
- 1,117
- 3
- 22
- 50
0
votes
2 answers
Keeping a HttpHandler alive / flushing intermediate data
Background: we are having issues with one of our GPRS devices connecting through a proxy to a generic handler. Although the handler closes the connection immediately after returning, the proxy keeps the connection open, which the device does not…

vgru
- 49,838
- 16
- 120
- 201
0
votes
1 answer
Can't set "Content-Type" in my generic handler
I have a very simple Generic Handler, which sends a simple alert to the client. I set the Content-Type header to be application/x-javascript, but what I get from server is a text/html content type.
Here is the code of my generic handler:
public void…

Saeed Neamati
- 35,341
- 41
- 136
- 188
0
votes
2 answers
How to designate the name of a file that a user downloads via an ASHX downloader?
This is my first time writing code that allows a user to download a file uploaded by another user.
I've written an ASHX file, download.ashx, with code that looks like this:
s = context.Request.QueryString.ToString();
byte[] buffer = new…

Vivian River
- 31,198
- 62
- 198
- 313
0
votes
1 answer
Ajax call to web handler works but returns no data
So, I have an ASP.NET Generic handler defined with the following code snippet:
public void ProcessRequest ( HttpContext ctx ) {
try {
ctx.Response.ContentType = "text/json";
var jsonData = new…

FrontRangeGuy
- 101
- 2
- 10
0
votes
1 answer
Cookie created in Generic Handler visible when browsing directly to the handler but not if the handler is called from an aspx page (c#/.NET)
I have a generic handler (cookiecutter.ashx) on a cloud server that sets a cookie. I need to read this cookie from my local production server. The cloud server uses a subdomain of the domain on the production server (for example the handler is at…

John
- 35
- 1
- 7
0
votes
1 answer
uploadify passing query to generic handler
Been stuck at this part for a few days that i still could not pass any query string to generic handler.
my code is as follows:
1st: query string is passed into Upload.aspx. and i retrieve it in the page load section:
My Upload.aspx.cs
protected…

foo ming xiang
- 65
- 1
- 10
0
votes
1 answer
How to generate alert or js function after generic handler
I have written a function which basically takes some input as text and set of files. And using Generic handler i save the files and text all works fine. The issue is after the process i want to some some alert or success message how can i achieve…

confusedMind
- 2,573
- 7
- 33
- 74