Here is what I'm specifically trying to do:
I have written a HttpModule to do some site specific tracking. Some old .aspx pages on our site are hard coded with no real controls, but they are .aspx files so my module still runs when they are requested.
My module's handler is attached to the PostRequestHandlerExecute, so I believe what will be sent back to the requester should have already been determined.
I need to be able to extract whatever string is in the title tag.
So if
<title>Chunky Bacon</title>
is sent to the requester in the final rendered HTML. Then I want "Chunky Bacon".
Ideas?
Best Answer
Fun little challenge.
Here's the code:
StreamWatcher.cs
TitleModule.cs