Tricky Problem. Possible to modify response object?

  • Thread starter Thread starter cuj0
  • Start date Start date
C

cuj0

Don't ask me why, but I have a situation where a "<base href="..."
value has been set for all my pages, but under certain situations I
don't want it to have an effect. Therefore, I was hoping that I could
use a HTTPModule or the Global.asax to remove or modify the base href
value when my conditions are met.

I've been doing a bit of reading on usenet, and usually the simple
solution would be to include a literal custom control in the HEAD
section to set the the value of the base href when and how I like.
However, in my situation the base href was set by a 3rd party
component, and hence I cannot insert/access any objects to change it.

Therefore, does anyone know:
(a) If there is a way to do some kind of find & replace operation on
the response object; or
(b) Any other solutions that might solve my problem?

ps Please reply to the group as this email address won't work...

Thanks,
Caleb.
 
You can use Response.Filter property to send all output through the filter
witch will strip it out.

George.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top