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
Using generic handler to implement proxy server in asp.net
I have made a generic handler to implement the concept of proxy server in asp.net from the link below
Source code link
Now problem is i am opining a google.com, google page is opening but when i search something it gives me 404 error, I am running a…

Qadeer Hussain
- 1
- 3
0
votes
1 answer
Drag and Drop upload file by using Generic Handler in visual studio webform
when i am trying to pass the files(Drag and drop) to Generic Handler, the context.Request.Files.Count in Generic Handler contains 0, I've tried a lot of ways but still unable to solve it.
Generic Handler:
CommonFunction _commonFunction = new…

kllow
- 3
- 4
0
votes
1 answer
Update Image based on Response Stream
Is is possible to update an image on an HTML page using the response stream of an ASP.NET Generic Handler?
For example, if I have the following code on a handler:
// http://www.example.com/?Guid=
public void ProcessRequest (HttpContext…

George Johnston
- 31,652
- 27
- 127
- 172
0
votes
1 answer
Getting data from ASHX in AJAX javascript
Creating:
A handler which checks in database if there's a new messsage.
What I've done so far:
Javascript that using AJAX runs a handler every third second.
What I'm unable to do: Returning a result from ASHX handler to AJAX javascript so that I…

Ishaan Patel
- 13
- 2
0
votes
0 answers
Background Worker in generic handler yeild to null context?
I am using a backhround worker class in my generic handler code.
Here is my handler :
public void ProcessRequest(HttpContext context)
{
BackgroundWorker.Run(() =>
{
// Do work here
//If I call the…

user123456
- 2,524
- 7
- 30
- 57
0
votes
2 answers
how to pass the values from ASPX page to genric handler using query string
string ID = context.Request.QueryString["BudgetId"] == null ? null : context.Request.QueryString["BudgetId"].ToString();
context.Response.ContentType = "text/Plain";
string Budgetid = context.Request["ID"];
…

Ahmad
- 1
- 4
0
votes
1 answer
Javascript Download file using ashx
I need create a JS method that calls a Generic Handler (ashx)
that returns a file (byte array). This file can be a xml, txt or Pdf.
I resolve my problem using the code below, but when the file doesn't exists,
I'm redirected to another page with…

Salatiel
- 121
- 2
- 10
0
votes
1 answer
Change filename of picture in generic handler
I have a generic handler that is setup to receive a picture from an ipad running html5 and javascript.
All the code is working front to back, short one thing.
I need to change the filename of the picture once it is handled in the generic…

pithhelmet
- 2,222
- 6
- 35
- 60
0
votes
1 answer
Read and authentication using network credentials in a generic handler (ashx)
I have created a generic handler inside an entity framework application that displays data from a table. I want to secure the handler in case anyone tries to access it directly with the url or otherwise. Where and how do I write the username and…

Southern Coder Chic
- 71
- 2
- 8
0
votes
1 answer
Passing a parameter into a generic handler
Right, so I'm pulling information out of a database, by Scheme Code, and displaying it on a webform, where it can be modified or new records can be created.
to get the image out I created a Generic handler as a sort of virtual address.
I'm having…

Bigtingz92
- 129
- 1
- 15
0
votes
1 answer
jQuery ajax call failing with undefined error
My jQuery ajax call is failing with an undefined error. My js code looks like this:
$.ajax({
type: "POST",
url: "Data/RealTime.ashx",
data: "{}",
contentType: "application/json; charset=utf-8",
dataType: "json",
timeout: 15000,
…

vgru
- 49,838
- 16
- 120
- 201
0
votes
1 answer
Context.Request getValues and multiple select elements
I am trying to understand the GetValues for Form and QueryString in context.Request
I have a url like this, generated from an ajax handler on a multiple select html element
generic.ashx?tags=1&tags=2
in theory shouldnt this (submitted by post) set…

Jay Rizzi
- 4,196
- 5
- 42
- 71
0
votes
0 answers
Calling Generic Handler .ashx from asp.net code behind
I have a generic handler (.ashx) which is used to download an excel file.
When I try to call it using the code below:
HttpWebRequest request = WebRequest.Create("ExcelDownload.ashx?id=123") as HttpWebRequest;
HttpWebResponse response =…

jigsmshah
- 165
- 1
- 4
- 13
0
votes
1 answer
ExecuteNonQuerySql - set OUT parameter from anonymous SQL block
I have a generic handler I am attempting to have interact with a stored oracle procedure, but this stored procedure uses an out parameter
i am patterning my work after some other files , which essentially uses a listDictionary to pass in parameters…

Jay Rizzi
- 4,196
- 5
- 42
- 71
0
votes
1 answer
Access asp.net control in generic handler
There is a control in .aspx file:
How can I access this label control from .ashx file ? (To read the label text for example)

Muhamad Jafarnejad
- 2,521
- 4
- 21
- 34