473,320 Members | 1,990 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,320 software developers and data experts.

Http module to directly edit output

Hi. How can I automatically edit the output of an ASP.net application,
such as using regular expressions to replace repetitive whitespace
with one space, or add a comment to the end of the output? I'd like to
just add this as an http module in Web.config.

I've used IHttpModule to do some simple tasks, but I can't find a way
to directly access the output. What I'm looking for would be the
equivalent of an object buffer that feeds through a function in PHP.

Is there some special place in the chain of events of rendering a page
that I should be inserting this code into? Is IHttpModule the right
place to look?

Thanks,
Mike PII

May 23 '07 #1
3 1166
you need the filter property

http://www.ondotnet.com/pub/a/dotnet...ttpfilter.html

Regards

John Timney (MVP)
http://www.johntimney.com
http://www.johntimney.com/blog

"Mike P2" <su***********@gmail.comwrote in message
news:11**********************@p47g2000hsd.googlegr oups.com...
Hi. How can I automatically edit the output of an ASP.net application,
such as using regular expressions to replace repetitive whitespace
with one space, or add a comment to the end of the output? I'd like to
just add this as an http module in Web.config.

I've used IHttpModule to do some simple tasks, but I can't find a way
to directly access the output. What I'm looking for would be the
equivalent of an object buffer that feeds through a function in PHP.

Is there some special place in the chain of events of rendering a page
that I should be inserting this code into? Is IHttpModule the right
place to look?

Thanks,
Mike PII

May 23 '07 #2
Oops...sorry for the triple post, Google Groups told me there was an
error posting it so I tried again.

-Mike PII

May 24 '07 #3
Easy done - good luck with your code :)

Regards

John Timney (MVP)
http://www.johntimney.com
http://www.johntimney.com/blog

"Mike P2" <su***********@gmail.comwrote in message
news:11**********************@h2g2000hsg.googlegro ups.com...
Oops...sorry for the triple post, Google Groups told me there was an
error posting it so I tried again.

-Mike PII

May 24 '07 #4

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

Similar topics

0
by: Bill Davy | last post by:
I am working with MSVC6 on Windows XP. I have created an MSVC project called SHIP I have a file SHIP.i with "%module SHIP" as the first line (file is below). I run SHIP.i through SWIG 1.3.24...
8
by: Andreas Klemt | last post by:
Hello, I get this error Message "cannot redirect after http headers have been sent" when I do this response.redirect ("home.aspx") How can I find out with vb.net if already a http header has...
1
by: chromis | last post by:
Hi, I'm having trouble fully implementing the edit section of a contact admin system, so far I have written the following: - Bean (Contact.cfc) - Data Access object (ContactDAO.cfc) - Gateway...
1
by: dudeja.rajat | last post by:
Hi, I'm using the CTYPES module of python to load a dll. My dll contains a Get_Version function as: long __stdcall af1xEvdoRDll_GetVersion(long version); This function accepts a long array of...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.