Hi,
After html of .aspx page has been generated, but before it has been sent to
a client, I want to interecept it, and slightly modify it. I can't find
anyway to get html of a page. How can I do that? I need that because I need
to modify behaviour of a component that someone else wrote, but I don't have
its sourcecode. Thanks 5 1472
Could you inherit and override some of their methods?
"LP" <lp@a.com> wrote in message
news:ei******** *****@TK2MSFTNG P15.phx.gbl... Hi,
After html of .aspx page has been generated, but before it has been sent
to a client, I want to interecept it, and slightly modify it. I can't find anyway to get html of a page. How can I do that? I need that because I
need to modify behaviour of a component that someone else wrote, but I don't
have its sourcecode. Thanks
"LP" <lp@a.com> wrote in message
news:ei******** *****@TK2MSFTNG P15.phx.gbl... Hi,
After html of .aspx page has been generated, but before it has been sent
to a client, I want to interecept it, and slightly modify it. I can't find anyway to get html of a page. How can I do that? I need that because I
need to modify behaviour of a component that someone else wrote, but I don't
have its sourcecode. Thanks
For example: use Page.render() to get the rendered HTML source then modify
it and send it out by Response.write( )... on PreRender event?
Not very sure about that.
"Peter Rilling" <pe***@nospam.r illing.net> ¦b¶l¥ó
news:O9******** *****@TK2MSFTNG P09.phx.gbl ¤¤¼¶¼g... Could you inherit and override some of their methods?
"LP" <lp@a.com> wrote in message news:ei******** *****@TK2MSFTNG P15.phx.gbl... Hi,
After html of .aspx page has been generated, but before it has been sent to a client, I want to interecept it, and slightly modify it. I can't find anyway to get html of a page. How can I do that? I need that because I need to modify behaviour of a component that someone else wrote, but I don't have its sourcecode. Thanks
Hello lp,
I think you probably want to look at the HttpResponse.Fi lter [1] property.
This is a Stream derived class that you can hook up to do whatever you need
with the response stream prior to it being sent to the client. Here [2] is
an example.
[1] http://msdn.microsoft.com/library/de...ilterTopic.asp
[2] http://dotnetjunkies.com/WebLog/donn...9/08/1468.aspx
Enjoy!
--
Matt Berther http://www.mattberther.com Hi,
After html of .aspx page has been generated, but before it has been sent to a client, I want to interecept it, and slightly modify it. I can't find anyway to get html of a page. How can I do that? I need that because I need to modify behaviour of a component that someone else wrote, but I don't have its sourcecode. Thanks This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: zoltix |
last post by:
Hi,
I am beginner in aspx. I would like to intercept all click events on
my document. I use this function in javascipt for that
document.onmousedown=click;. It works well. But I would like to
continue the execution code on a other button or anything else.
Example
1) Click anywhere intercept click->Execute the code in function click().
|
by: Ben de Vette |
last post by:
Hi,
When a user submits a form I want to return him/her a page, but at the same
time I want to send him/her an exact copy of this page by mail.
Is there a way to intercept the rendered HTML of a User Control befor it is
included in the page where the User Control is used? Same question for the
page, can I intercept the HTML?
Thanks in advance,
|
by: moondaddy |
last post by:
I have an application where users need to upload images and in my web.config
file I have a setting like this:
<httpRuntime maxRequestLength="512" />
Which restricts image larger than 500k from being uploaded. I'm also using
the HtmlInputFile control to do the uploading. My problem is that when the
user's file size exceeds 512k, the page immediately redirects to the "The
page cannot be displayed" error page which is very confusing. ...
|
by: rpale |
last post by:
We want to create server-side code that will retrieve the user requested
pages, then manipulate the content of those pages just before being sent back
to the user. We tried the following:
• User requests the page, call it http://www.test.com/testapp/test.aspx
• IIS receives the request
• HttpHandler is called for all .aspx files requested as defined in the
web.config file for this application
<httpHandlers>
<add verb="*"...
|
by: Eric Lindsay |
last post by:
I have been trying to get a better understanding of simple HTML, but I
am finding conflicting information is very common. Not only that, even
in what seemed elementary and without any possibility of getting wrong
it seems I am on very shaky ground .
For example, pretty much every book and web course on html that I have
read tells me I must include <html>, <head> and <body> tag pairs.
I have always done that, and never questioned it. ...
| |
by: Eric Lindsay |
last post by:
This may be too far off topic, however I was looking at this page
http://www.hixie.ch/advocacy/xhtml about XHTML problems by Ian Hickson.
It is served as text/plain, according to Firefox
Response Headers - http://www.hixie.ch/advocacy/xhtml
Date: Wed, 23 Nov 2005 21:36:06 GMT
Server: Apache/1.3.33 (Unix) DAV/1.0.3 mod_fastcgi/2.4.2
mod_gzip/1.3.26.1a PHP/4.3.10 mod_ssl/2.8.22 OpenSSL/0.9.7e
Vary: Accept-Encoding,User-agent
|
by: VK |
last post by:
Is it possible to include SVG object right onto HTML page in Firefox
1.5?
(I mean native SVG, not SVG plugin)
....
<svg>
....
</svg>
All samples on mozilla.org are either stay-alone .svg files or XML
files. When trying to insert them in HTML page it just doesn't display.
|
by: Matt Walker |
last post by:
I decided to flesh out my php skills by building a web application
which could scan through local files on my intranet (specifically
mapped drives on my server) and generate a list of Movies or pictures
or music, etc. Which worked fine, I created the code to do that and to
store the results in a mysql database. I can even print it out to a
..php page and sort it however I like.
What I can't seem to do is to create links to the data...
|
by: alice |
last post by:
I've been trying for a long time to figure this out, to have a page
with several MP3 clips, and each one having a custom start and stop
button next to them to play the track. I finally found a bit of code
that does this, but it's made for only one mp3 file. I don't know
enough about javascript to customize the code myself. I know there
probably needs to be an "array" of some sort, but I need some help
figuring out where and how that works....
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |