OK, this might sound a bit confusing and complicated, so bear with me.
We've written a framework that allows us to define friendly URLs. If you surf to any arbitrary URL, IIS tries to display a 404 error (or, in some cases, 403;14 or 405). However, IIS is set up so that anything directed to those specific errors is sent to an .aspx file...
With ASP.NET MVC (or using HttpHandlers) you can dynamically generate URLs, like the one in this question, which includes the title.
What happens if the title changes (for example, editing it) and there's a link pointing to the page from another site, or Google's Pagerank was calculated for that URL?
I guess it's all lost right? (The l...
Hello,
I've created an IHttpHandler in .NET C# which returns pieces of html to a classic asp page.
The classic asp page communicates with the IHttpHandler through basic http requests using ServerXMLHTTP in vbscript or Ajax Calls in JavaScript.
Now, I need a way to share a variable which I have in vbscript but not in javascript with th...
Hi, we're have a client that needs to get interactive messages from a server, from clients that are distributed around the world behind all kinds of firewalls with all kinds of ports closed. The only thing we can rely on is HTTP port 80 (and HTTPS 443).
The design is basically modeled after XMPP (the Jabber protocol), using our client a...
hey all,
In my ASP.Net 1.1 application, i've added the following to my Web.Config (within the System.Web tag section):
<httpHandlers>
<add verb="*" path="*.bcn" type="Internet2008.Beacon.BeaconHandler, Internet2008" />
</httpHandlers>
This works fine, and the HTTPHandler kicks in for files of type .bcn, and does its thing.. however...
I'm just meddling in the ways of the RESTful web service in C# using ASP.Net 2.0 and have managed (via a class library, a reference to dll produced by the former and some adjustment of my web.config) to coax out a URI format like so:
http: //localhost/DevelopmentProject/testhandler/?input=thisismyinput
Which unremarkably just returns ...
hey All,
I would like to provide downloadable files to website users, but want to hide the URL of the files from the user... I'm thinking an HTTPHanlder could do the trick, but is it possible to retrieve a file from an external server and stream it to the user?
Perhaps somebody can give me a hint at how to accomplish this, or point me ...
I have created HTTP handlers.
How do I create global variables for these handlers like I can with ASP.net web pages in global.asax?
...
Hi,
I've got a series of GIFs that I need to crop on the fly, I'm using a HTTP Handler in C# so I can better encapsulate the code - provide caching for the result etc.
Currently, when I draw the existing image to a new Image via the Graphics object all the transparency is lost.
I've tried various techniques to try and maintain the tra...
I have an http handler (.ashx) that I use to display an image or swf or flv based on the id. So, for instance http://www.mysite.com/myHandler.ashx?id=1234 displays the image for id 1234. I am using this as a source for an image tag or swfloader or videodisplay in flex. In my handler if the item is a video I just redirect the request to t...
We've got a fairly complex httphandler for handling images. Basically it streams any part of the image at any size that is requested. Some clients use this handler without any problems. But we've got one location that gives us problems, and now it also gives problems on my development environment.
What happens is that the client never r...
I've done a good bit of research to find an upload component for .NET that I can use to upload large files, has a progress bar, and can resume the upload of large files. I've come across some components like AjaxUploader, SlickUpload, and PowUpload, to name a few. Each of these options cost money and only PowUpload does the resumable u...
When a site is used with URL test.com handlers are not fired. Whereas if the site is used with www.test.com the handlers work properly? The site is behind an ISA firewall. How should I fix this?
...
We have an HttpHandler that deals directly with binary posts over HTTP from custom client software. The client software occasionally sends data which results in IIS 7 responding with a 400 - Bad Request. Since the "400 Bad Request" is special in that HTTP.SYS transparently handles it in kernel mode without notifying user mode of anything...
I'm programming a file transfer handler with speed limit feature, the rate based on user level. How do I control/calculate transfer rate in HttpHandler?.
Some asp.net resource tell me that use Thread.Sleep will block asp.net thread pool.
...
I have created an ashx handler that returns an image to my flex app. If I go directly to the url for example (www.mysite.com/handler.ashx?id=34) the browser will display the image. If you set the source of an image control in flex to the same address. I get "Error #2124: Loaded file is an unknown type.". Any hints
...
Hi Everyone,
I'm trying to implement a http handle (.ashx) using asp.net for an environment where the clients will be using serverxmlhttp to request information from the handler. Here is the code so far...
CLIENT.ASPX
<%@ Page Language="VB" %>
<%
On Error Resume Next
Dim myserver_url As String = "http://mydomain.com/Server.a...
I've a requirement of creating a HttpHandler that will serve an image file (simple static file) and also it'll insert a record in the SQL Server table. (e.g http://site/some.img, where some.img being a HttpHandler) I need an in-memory object (like Generic List object) that I can add items to on each request (I also have to consider a few...
Consider an HttpHandler that can be configured for multiple paths.
But based on the path that matched a url i could be able to select the settings to apply.
I don't want to pass parameters in the url.
...
Hello there,
I am building a fairly simple CMS. I need to intercept requests for the majority of .aspx pages in my web application, in order to gain complete control over the output. In most cases, the output will be pulled from cache and will just be plain HTML.
However, there still are a couple of pages that I am going to need to u...