473,397 Members | 2,056 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

httpHandler for asp

I am looking to write an httpHandler to process incoming asp requests. I
need to process the asp script with the asp.dll and then format the response
(I need to rewrite url and image paths based on the current virtual
directory). Is this possible? Any suggestions would be appreciated.

thanks
Nov 19 '05 #1
2 1474
Hi Phil,

Not with classic ASP. You can do this with ASP.NET.

For classic ASP you'd have to use an ISAPI filter to do this most likely.

Maybe there's a way you can do what you need from within the ASP code and
some client side scripting?
Hard to tell by the limited description you give here...
+++ Rick ---
"Phil" <Ph**@discussions.microsoft.com> wrote in message
news:7F**********************************@microsof t.com...
I am looking to write an httpHandler to process incoming asp requests. I
need to process the asp script with the asp.dll and then format the response (I need to rewrite url and image paths based on the current virtual
directory). Is this possible? Any suggestions would be appreciated.

thanks

Nov 19 '05 #2
I figured that it would not work... The basic idea behind what I am trying
to do is the following: Staging and production web servers have separate web
sites for each web application, however, development is a little different.
Each developer has a web site on development and uses a separate virtual
directory for each web application. The problem that I need to resolve
occurs when their is a image or link whose path is pointing to the root of
the application. This works fine on staging and production, but on
development it points to the root web site instead of the virtual directory.
As a result the image and link url's are incorrect. I do not want to have to
go through and change the code so what I want to do is reformat the response.
I currently do it using the MSXML object, but it is a little slow because it
is making two requests to every page. Maybe javascript onload is the answer?
Do you have any ideas? Thanks again for your response.

"Rick Strahl [MVP]" wrote:
Hi Phil,

Not with classic ASP. You can do this with ASP.NET.

For classic ASP you'd have to use an ISAPI filter to do this most likely.

Maybe there's a way you can do what you need from within the ASP code and
some client side scripting?
Hard to tell by the limited description you give here...
+++ Rick ---
"Phil" <Ph**@discussions.microsoft.com> wrote in message
news:7F**********************************@microsof t.com...
I am looking to write an httpHandler to process incoming asp requests. I
need to process the asp script with the asp.dll and then format the

response
(I need to rewrite url and image paths based on the current virtual
directory). Is this possible? Any suggestions would be appreciated.

thanks


Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Hanse Davion | last post by:
Can anyone provide some insight on what this problem could be? I have searched the web, read forums, and all the installation documentation for the dotnetnuke feeware portal from asp.net. I am...
3
by: Jed | last post by:
I have written an HttpHandler which I invoke through an ashx page. The HttpHandler does various things to process the request, then it is supposed to redirect to a confirmation page. Everything...
4
by: Jeremy Lew | last post by:
When my HttpHandler is processing a request when installed on a particular 2003 Server machine, the Context.Session object is null. Any idea why this might be? My handler implements...
3
by: Ralf Müller | last post by:
hi all! in my custom HttpHandler HttpContext.Current.Session is not set - why? greetings, ralf
9
by: Jared Tullis | last post by:
We have an .NET 1.1 application running on 4 2K3 load balanced servers (using WLBS). IIS has the .NET aspnet_isapi.dll mapped as a wildcard application map. The web.config points *.html to a...
7
by: Adam | last post by:
Im trying to add an httphandler for all *.sgf file extensions. I have developed the handler, 1. installed it into the gac 2. added it to the machine.config: <httpHandlers> <add verb="*"...
8
by: bryan | last post by:
I've got a custom HttpHandler to process all requests for a given extension. It gets invoked OK, but if I try to do a Server.Transfer I get an HttpException. A Response.Redirect works, but I really...
5
by: the4man | last post by:
Hi all! I have an app that show images that are stored in SQL Server. To show the images on screen, until now (with the "old" ASP), I use the following code: <img src="showimage.asp?id=20"...
5
by: zlf | last post by:
Hello, I try to use a custom HttpHandler to add something to session, then display the original page. public void ProcessRequest(HttpContext context) { context.Session = "test"; } But, a...
5
by: Author | last post by:
I followed the example at http://support.microsoft.com/kb/308001/EN-US/ and created my own HttpHandler. Here is the code: using System.Web; namespace MyNameSpace { public class...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.