It's probably possible to extract the literal controls for the head tag,
and replace them - see the thread titled "Extracting the Title of a Page
from CodeBehind?" from the archives (early May)

Kirk

-----Original Message-----
From: Zane Thomas [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, 16 May 2002 4:45 p.m.
To: [EMAIL PROTECTED]
Subject: Re: [DOTNET] ASP.NET Control - Insert text in
<HEAD>here!</HEAD>?


Dan,

> Could you have the control write the entire header-delete whatever is 
> in the page and put it in the control?

I haven't been able to figure out how to get to the <head>, otherwise I
might be able to modify it.  But I think it's generated on the fly, into
the Response's stream.  One approach that *might* work would be to
supply a stream to the HttpResponse.Filter property and wait for </head>
to arrive - inserting the extra content there.   That's ugly, but if no
one has a better suggestion I'll give it a go.




> When the html for an aspx is output something, somewhere, inserts:
> 
> <HEAD>
>    <meta (some of these)/>
> </HEAD>
> <body>
> </body>
> 
> My control needs to write some stuff inbetween <head> and </head> ... 
> does anyone know how to do that?
> 
> 
> Zane
> 
> You can read messages from the DOTNET archive, unsubscribe from 
> DOTNET, or subscribe to other DevelopMentor lists at 
> http://discuss.develop.com.
> 
> You can read messages from the DOTNET archive, unsubscribe from 
> DOTNET, or subscribe to other DevelopMentor lists at 
> http://discuss.develop.com.
> 

You can read messages from the DOTNET archive, unsubscribe from DOTNET,
or subscribe to other DevelopMentor lists at http://discuss.develop.com.

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to