Questions tagged [generic-handler]

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.

161 questions
1
vote
0 answers

Ajax to .ashx not returning data

The ajax $.ajax({ type: 'POST', url: '/Modules/ProductInfo/ProductInfo.ashx', data: { ProdUID: self.ProductUID() }, dataType: 'json', succes: function (response)…
Expressingx
  • 1,480
  • 1
  • 14
  • 39
1
vote
1 answer

loading external image asynchronously using jQuery

I have the following situation: I need to load several external images hosted by 3rd party, with example url like this; http://externaldomain.com/img/a/b/someimage.jpg however loading 1 image can cost up to 15 secs!! (crazy I know), so I'm…
Arief
  • 6,055
  • 7
  • 37
  • 41
1
vote
1 answer

JQuery Retrieving Multiple Values from Generic Handler

After doing a search on Google and reading documentation, I am confused how this works. When calling a generic handler with a value and returning multiple values on success. How do you loop through the records in the database? Do you loop through…
Dan Nick
  • 514
  • 1
  • 9
  • 30
1
vote
0 answers

Handling files from two file inputs

I have the following HTML code:
Your photo file Not requiered
Your CV file
Eid Sky
  • 49
  • 6
1
vote
1 answer

C# generic handler not getting data from post

I'm doing a simple c# generic handler that should receive a form post. Here's the form...
1
vote
1 answer

Register and resolve a class in generic handler using AutoFac

I have a class called Config in my WebAPI project which has one constructor injection of a service. public class Config: IConfig { protected readonly IConfigService _configService; public Config(IConfigService configService) { …
1
vote
1 answer

Create Dynamic image (.gif) through a generic handler

I have already the algorithm created with the library Magick.Net to show a little time counter, however when I request the gif resource through the generic handler returns a static image, but when I check the test file named: "test.gif" the dynamic…
RokumDev
  • 367
  • 4
  • 13
1
vote
1 answer

Change Generic Handler window's title during PDF viewing

I'm trying to open PDF file in browser using Generic Handler (ASP.NET MVC). When I open it, window title is the name of this Handler, written in its class. If I try to download PDF using its own download button, the type of downloading file is PDF…
GuRAm
  • 758
  • 1
  • 7
  • 22
1
vote
1 answer

How do I access jQuery AutoComplete extraParams with ASP.NET

I'm using the following jQuery script to send a 'Make' parameter to filter my 'Models': $(document).ready(function () { $(".autocomplete_make").autocomplete("/AutoComplete/Make.ashx"); }); $(document).ready (function () { …
Curtis
  • 101,612
  • 66
  • 270
  • 352
1
vote
0 answers

Asp.net Image uploading on server side using generic handler

I am trying to upload image on server side by using below code:
user5463562
1
vote
1 answer

Load image into canvas using a generic handler

is it possible to load an image directly into a canvas control using a generic handler without using the image element? This is my handler: public void ProcessRequest(HttpContext context) { …
Andrew Simpson
  • 6,883
  • 11
  • 79
  • 179
1
vote
1 answer

HttpContext.Current.Session is null inside the aync Task while try to Make a WebSocket Request

I'm Creating a WebSocket Request From The Client To the Server Using Generic Handler HttpContext.Current.Session is null inside the Task Method My Server Code is <%@ WebHandler Language="C#" Class="SyncDataHandler" %> using System; using…
Marwan
  • 2,362
  • 1
  • 20
  • 35
1
vote
1 answer

Bind Data to .ashx file

I am building a SMS Getaway, and I am using SMS Enabler. So this is my example, a person sends a code via SMS. This code is looped in a SQL Server Database and checks if this code exists in this column, let's say on Database TEST, table TAGLE1,…
1
vote
1 answer

How to create a method to send some real-time data using generic handler?

I have a page waiting for response of a Generic Handler with this javascript code: if (typeof (EventSource) !== "undefined") { var source = new EventSource("../Handler/EventHandler.ashx"); source.onmessage = function (event) { …
Majid
  • 13,853
  • 15
  • 77
  • 113
1
vote
1 answer

Can't get select2.js ajax working with asp.net webform

I am trying to get an ASP.NET webform working with bootstrap 3 and the select2.js plugin. It doesn't return any errors or exceptions, it just sits there looking at me. Here is the page: