I'm referring to HTML that VS puts in your page whenever you add a page to a project-just delete it manually so you have an empty page. Then add a user control to write whatever you need in the <head>
?? -----Original Message----- From: dotnet discussion [mailto:[EMAIL PROTECTED]] On Behalf Of Zane Thomas Sent: Wednesday, May 15, 2002 11:45 PM 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.