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

Tricky Problem. Possible to modify response object?

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.

Mar 19 '06 #1
1 1416
You can use Response.Filter property to send all output through the filter
witch will strip it out.

George.

<cu**@bigpond.com> wrote in message
news:11**********************@i39g2000cwa.googlegr oups.com...
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.

Mar 20 '06 #2

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

Similar topics

9
by: Rajat Tandon | last post by:
Hello there, I am relatively new to the newsgroups and C#. I have never been disappointed with the groups and always got the prompt replies to my queries.This is yet another strange issue, I am...
3
by: Kris van der Mast | last post by:
Hi, I've created a little site for my sports club. In the root folder there are pages that are viewable by every anonymous user but at a certain subfolder my administration pages should be...
1
by: Kris van der Mast | last post by:
Hi, been a while since I posted a question myself instead of trying to help others out. I'm refactoring an existing web app that uses dynamic loading of user controls and a lot of...
5
by: Thomas Scheiderich | last post by:
I am having a problem with a Datatable access. This statement apparently works fine: response.write(GetRows.Rows(ktr)(1)) and this statement does not: if e.day.date = GetRows(ktr)(1) then
1
by: Andrew | last post by:
Hey all, Working on revamping our Intranet here and making use of the LDPA, Active Directory, Directory Services, etc. that .Net provides. I am still fairly new on this subject, so the problem...
7
by: jsale | last post by:
I'm currently using ASP.NET with VS2003 and SQL Server 2003. The ASP.NET app i have made is running on IIS v6 and consists of a number of pages that allow the user to read information from the...
15
by: Ron L | last post by:
We are working on a distributed VB.Net application which will access a SQL database located on a known server. Each client will run on the user's local machine. To implement this, we are trying...
3
by: Alison Givens | last post by:
Hi there, I am using VB.NET2003 with CR. I have a good working webform that exports the CR to pdf when I hit the print button. Now what I want is that it exports the CR to Excel instead of Pdf....
2
by: sweatha | last post by:
Hi friends This is sweatha, fresher MCA 2007 batch. Right now I am working in asp.net platform. My dillema is that I have created a registration form with the fields as username & password. And if...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
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
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...
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...
0
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...

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.