Questions tagged [ashx]

ASP.NET Web Handler file extension

Just as ASPX files can be compiled on the fly (just-in-time), so can handlers. Generic handlers have an extension of ASHX. They're equivalent to custom handlers written in C Sharp or Visual Basic.NET in that they contain classes that fully implement IHttpHandler. They're convenient in the same way ASPX files are convenient. You simply surf to them and they're compiled automatically.

Reference

ASHX usage example

Creating a Synchronous HTTP Handler on MSDN

Creating an Asynchronous HTTP Handler on MSDN

HTTP Handlers and HTTP Modules Overview

Significance of bool IsReusable in http handler interface

621 questions
0
votes
2 answers

how to call an external object using javascript (and AJAX?)

First off, thanks to this community. I'm slowly starting to understand this stuff and I appreciate all the feedback. That said, I come with another question. THE SITUATION: I'm trying to build a new site and I'm trying to use it as a learning…
user1311848
  • 55
  • 2
  • 11
0
votes
2 answers

cookie persistence in ashx calls

siteA.com calls sitecookie.com/cookies.ashx and sets a cookie "cookiename" for sitecookie.com domain. Same browser, same window, new tab, siteB.com calls sitecookie.com/cookies.ashx and tries to get the same cookie "cookiename" (again for…
xoail
  • 2,978
  • 5
  • 36
  • 70
0
votes
1 answer

DataGrid to excel not showing automatic gridlines

Wondering if anyone can assist. I have an .ashx file which creates an excel document which is populated with a C# DataGrid. This all works well the only problem is when I open the excel document the automatic gridlines are turned off. Is there a way…
Jebanisa
  • 111
  • 2
  • 15
0
votes
1 answer

Enable a timer after download

This question may be asked a lot times. But i didn't find an exact solution for this, that is why i am asking it. We are working in a project, where it got an update process. There is download functionality to download an exe. We are using a handler…
Mahesh KP
  • 6,248
  • 13
  • 50
  • 71
0
votes
1 answer

Filehandler download interrupts + session is gone

I wrote a ashx handler that streams files to the browser in a secure way, I want users to be authorised to get to these files. Problem is that when I steam big files (+40 MB), the session is gonen + the browser download suddenly interrupts after ~40…
Hifilover
  • 35
  • 1
  • 6
0
votes
0 answers

Dynamic POI using Openlayer

OpenLayers has a good example which I would like to reuse: http://openlayers.org/dev/examples/dynamic-text-layer.html This example is working fine in my pc. I would like to use my test.ashx handler instead of textfile.txt in above example You can…
papa
  • 9
  • 2
0
votes
2 answers

ASHX including code-behind class -

I'm trying to use an external code file to include some helper classes for several .ashx handlers. The example one is using ListToJSON, which just turns nested Lists (Theres stuff like List> that are being worked with) into JSON…
sylverfyre
  • 3,049
  • 3
  • 17
  • 15
0
votes
1 answer

Displaying bitmap stored in database

I store images of various types in a database and am using a .ashx to retrieve the image and write it to the response outputstream in order to display it on my site. This works great for any image type EXCEPT bitmaps. All I get for any bitmap I try…
BDW
  • 612
  • 1
  • 8
  • 20
0
votes
1 answer

How to open excel 2007/2010 on browser by using .ashx?

I have already created a ashx file to open excel 2007 on website. Here is the code in test.aspx: (call test.htm to open a popup) Export Here is the code in test.htm: (using iframe to load the excel…
Thang Lang
  • 75
  • 1
  • 11
0
votes
1 answer

multi-platform app: ashx or web services?

I am looking to create a lightweight, heavy traffic, db site. It will be standard 3 tiered architecture in asp.net. Part of this site is web-based, but most of the functions will ideally be available on mobile devices, also. That being said, I know…
ericgr
  • 829
  • 2
  • 9
  • 13
0
votes
3 answers

Dynamically generated svg that works with IE9

Our web page uses dynamically generated svg from an ashx page. This works in IE8 and earlier using the Adobe SVG plugin. It does not work in IE9 (including compatibility mode). We are using the tag. I am trying to modify the page to…
Brad
  • 1,360
  • 4
  • 18
  • 27
0
votes
1 answer

Same page on two browser and different session - ASHX

I have ASHX where user upload product image and i save uploaded file name in session["up_pro_image"]. On submit i read session value and make manipulation with file. But what if he have opened two pages and add product on both one, ill lose one file…
Novkovski Stevo Bato
  • 1,013
  • 1
  • 23
  • 56
-1
votes
1 answer

when use .ashx adress got javascript error : myxmlhttprequest.open is not a function

i cant access to SayHello.ashx and i got this javascript error : httpReq.open is not a function. but the code work fine when i use an aspx page for answer xmlhttprequest : httpReq.open("POST", "SayHello.aspx"); where is the problem? can the…
biglibigli
  • 59
  • 3
  • 8
-1
votes
1 answer

C# Array.Exists lambda expression CS1525: Invalid expression term '>'

have this C# code string[] statuses = { "created", "paid", "pending", "authorized", "shipping", "completed", "canceled", "expired" }; string status = "pending"; if (Array.Exists(statuses, element => element == status.Trim())){ …
crang crang
  • 77
  • 1
  • 7
-1
votes
1 answer

Sometimes Image is not displaying for only one user

I am having ASP.NET MVC application in which i am using HTTP handler ashx file to get the image on the page . This image is uploaded by user by scanning the document. Now my problem is for every user its displaying except one , User is reporting he…
batwadi
  • 1,836
  • 7
  • 29
  • 42
1 2 3
41
42