I want to render this text into the <HEAD> section of a page (and perhaps
mute any existing title declaration, or alter it to be this instead) -
<title runat="server" id=HtmlTitle></title>
It seems Render only sends items into the <BODY>.
Actually, it would be nice if I had control over the entire rendering
process, including the whole <HEAD>.
It what I want to do possible?
Paul 3 1408
You can do this. I do it all the time. Just reference it as an
HtmlGenericCont rol in your code and it should be fine.
Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage
"PJ6" <no****@nowhere .net> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. .. I want to render this text into the <HEAD> section of a page (and perhaps mute any existing title declaration, or alter it to be this instead) -
<title runat="server" id=HtmlTitle></title>
It seems Render only sends items into the <BODY>.
Actually, it would be nice if I had control over the entire rendering process, including the whole <HEAD>.
It what I want to do possible?
Paul
Yes, this is possible. The approach I've taken in the past is to create my
own custom control that I place at the top of the document, right after the
<html> element. My custom control then is responsible for rendering <head>
and anything else I want in the <head>. Each page controls what is emitted
based upon properties on my custom head control. So, yep, it's possible;
it's just code, so make it do what you want :)
-Brock
DevelopMentor http://staff.develop.com/ballen I want to render this text into the <HEAD> section of a page (and perhaps mute any existing title declaration, or alter it to be this instead) -
<title runat="server" id=HtmlTitle></title>
It seems Render only sends items into the <BODY>.
Actually, it would be nice if I had control over the entire rendering process, including the whole <HEAD>.
It what I want to do possible?
Paul
Put this in the HTML view of your header section:
<%=MyScriptBloc kFunction()%>
Then define MyScriptBlockFu nction to return whatever script text you'd like.
--
I hope this helps,
Steve C. Orr, MCSD, MVP http://SteveOrr.net
"PJ6" <no****@nowhere .net> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. .. I want to render this text into the <HEAD> section of a page (and perhaps mute any existing title declaration, or alter it to be this instead) -
<title runat="server" id=HtmlTitle></title>
It seems Render only sends items into the <BODY>.
Actually, it would be nice if I had control over the entire rendering process, including the whole <HEAD>.
It what I want to do possible?
Paul This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: ryan.mclean |
last post by:
Hello everyone. Hope ya'll had a nice New Year. Anyway, my question
is why won't this work? I must be doing something dumb . . . here is
the code:
in the body tag, I have this code (just to test):
<script LANGUAGE="javascript">
<!--
function hiThere() {
alert("hi");
|
by: Ignac Vucko |
last post by:
Is writing a document *during* page load safe
and supported for all 4th and 5th generation browsers?
If not, can you show me a specific example/browser
where it causes problems?
<html>
<head>
<script>document.writeln("<div id='mydiv'>stuff</div>");</script>
</head>
<body>blah</body>
|
by: Brian W |
last post by:
Hi All,
I have a web user control that, among other things, provides Print this
page, and Email this page functionality I have this script that is to
execute on the click of the asp:hyperlinks
I have a function in a <SCRIPT> block that I want in the <head></head>
section of the page. Unfortunately, RegisterClientScriptBlock,
RegisterStartupScript don't always work, and when they do the script is
placed inside the <form> tag (this...
|
by: Ken Varn |
last post by:
I want to add my own custom <STYLE> section in the <HEAD> section of my
ASP.NET page within a custom control. Can someone tell me how I can have my
custom control add tags to the <HEAD> section of the page dynamically when
the page is rendered?
--
-----------------------------------
Ken Varn
Senior Software Engineer
Diebold Inc.
|
by: jsh02_nova |
last post by:
Anybody know how to add a script block to the html <head> section
programmatically without using the 'RegisterScriptBlock' functions?
--
thx
-jsh
| |
by: ericgla |
last post by:
I am creating a web app using asp.net 2.0 where all pages are based a
single master page. On some of the aspx pages I need to add javascript
to the head tag in order to use Google maps.
I tried this to access the header:
In the master page:
<HEAD runat="server">
In the aspx page: Page_Load
|
by: Arne |
last post by:
I need literal controls in the <head> section of my page. I need to be able
to load dynamic values in the head section. It works fine in ASP.Net 1.1, but
Asp.net 2.0 gives a compile error.
I need the dynamically assigned <base href='??'> and
<META NAME="Description" CONTENT="??">
Is there a work around?
|
by: Frank |
last post by:
From: "Frank" <fkaesser@pfmail.com>
Subject: Can I Use HTML Text Writer i a Custom Control to Render the <head>
Section?
Date: Wednesday, January 18, 2006 11:38 AM
I would like to create a custom control that generates everything that will
be in the <head> </head> section.
This would allow me to make changes on all pages withing a site in one
location.
|
by: Rex |
last post by:
I am writing a script that executes a bunch of queries through a form
on a website and reads the results. I am only interested in the
<titlesection in the <headof each web page. Currently, each page
the server returns is about 100kb and contains a bunch of HTML and
Javascript, all of which I don't need; I don't want to waste bandwidth
or consume too much of the server's resources. I just need the <title>
string.
Is there any way to...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |