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
1 answer
Session saved in handler cannot be accessed in aspx file
I am implementing captcha on the first page of my web application ie. on the login page. The captcha value is set in the generic handler which needs to be accessed in login.aspx page for verification.
The captcha was working perfectly fine until I…

Arti
- 2,993
- 11
- 68
- 121
1
vote
0 answers
HTTP request with generic class in Java
I have a generic class:
BaseResponseDTO
{
T payload;
}
I'm making a REST call which returns this object:
String url = "http://REST-CALL-LINK";
HttpHeaders headers = new…

Nandita Rao
- 277
- 1
- 4
- 17
1
vote
0 answers
Send formdata through JS file to the handler in vb.net
I have tried this code successfully in aspx file. But when I'm trying the same code in separate JS file, I'm unable to find the context.Request.Form & context.Request.Files in generic handler.
Link for the code I've tried is - Create Generic…

I Love Stackoverflow
- 6,738
- 20
- 97
- 216
1
vote
1 answer
ASHX generic handler not hitting until page is refreshed (with F5 or Refresh Button)
I have written an image handler which also implements client side caching by sending 304 on meeting certain conditions. For accessing different photos or the logged in person's own photo, we put the handler in the following way on different pages.…

Taha Rehman Siddiqui
- 2,441
- 5
- 32
- 58
1
vote
1 answer
passing value to ajax success: function
I have a function that calls a generic handler for some server action and upon completion of the handler I want to pass a message to the ajax success function based on what happened server side.
is it possible to do this and how can I do this?
this…

Arianule
- 8,811
- 45
- 116
- 174
1
vote
1 answer
asp.net Generic Handler isAuthenticated
I got two website, domain1.com and domain2.com, on domain1.com I have a generichandler that will write a response which tells whether or not the user is authenticated using:
string json = "{\"status\":\"" +…

Mike Zhang
- 62
- 8
1
vote
1 answer
Using of ashx to populate div with html
Is it possible to use a generic handler (*.ashx) to return html, which I can use within a div tag?
Something like
[call my generic handler which returns some html to be used within this div ]
In this case it is not an image,…
codingjoe
- 707
- 5
- 15
- 32
1
vote
1 answer
asp:repeater w/ asp:image and generic-handler - SQLConnection crash
I have an asp repeater which sets a generichandler (.ashx) parameter differently for each entry. This is used to create comments that are posted by users and display the avatar of the user posting by fetching it from a database. If there is only one…

user1339253
- 149
- 1
- 2
- 15
1
vote
1 answer
Ajax request is not working when it called image handler
My buttons click event handler is like this;
$(".imgRefreshContact").click(function () {
$.ajax({
url: "/Presentation/Site/Handlers/RefreshCaptcha.ashx",
type: "POST",
cache: false,
async:…

Mehmet Ince
- 4,059
- 12
- 45
- 65
1
vote
1 answer
Sending large amount of data to ASHX handler
I need to send a pretty large amount of data from a web application to a ASHX handler. The handler will then send the data to a web service for a response. ( The reason the handler is dealing with the web service is because the web app is written…

Aarron H
- 185
- 1
- 15
1
vote
1 answer
Generic handler to handle HTTP POST
I have a generic handler that I intend to use to accept an HTTP POST from Sage Pay. I am giving them the url for the POST however it is giving an error 500 (internal server error) which I guess is something wrong on my end. If I want the generic…

CSharpened
- 11,674
- 14
- 52
- 86
1
vote
2 answers
Pass a dataset to Generic handler (ashx)
How can I pass a dataset to a generic handler?
I don't want to use session or viewstate to do that.
I'm trying to return an excel file converted from the input dataset as the response.
I'm already showing the dataset content as a report in one…

Sen Jacob
- 3,384
- 3
- 35
- 61
1
vote
0 answers
Simple generic handler serving image
[ASP.NET 4.0 Visual Studio 2010]
Hi I am new to ASP.NET and am just trying to:
Create a Generic Handler so my Server-Side image control can reference it like Image1.ImageUrl = "~/ImageHandle.ashx"
Pass the name of a file in my Dropbox account…

seattleite7
- 350
- 1
- 5
- 15
1
vote
1 answer
how to access application.get from generic handler
I have a global.asax in which I define some variables that I want to be available throughout the application, such as a class to handle certain database requests. In an aspx page, I can access these variables/objects using for example in Visual…

Fritz45
- 752
- 1
- 10
- 23
1
vote
2 answers
file upload using jquery ajax
I want to upload a image with a description like:
data = '{"filename":"' + myfilename + '", "file":"' + file + '", "description":"' +
description + '"}';
$.ajax({
type: "POST",
url: "filehandler.ashx",
data: data,
success:…

Darshana
- 2,462
- 6
- 28
- 54