473,326 Members | 2,136 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,326 software developers and data experts.

Master Page ContentPlaceHolder in <header> area

I have been wading through tutorials and PDF files on MSDN and various
other .Net and ASP.Net sites trying to see if one can have an
<asp:ContentPlaceHolderblock within the <headerregion on a MasterPage,
and have the Content Page generate <headerinformation. One on-line
tutorial on MSDN says "I think so," and I am looking for a more definitive
answer. I am trying to do it without success so that I can put clint-side
JavaScript into a page.
Bob Delaney
Dec 27 '06 #1
3 2695
What exactly, dynamically, are you trying to accomplish in the header?
You wouldn't necessarily need a contentplaceholder for that (and for that
matter, there shouldn't be a need, since the idea for a content placeholder
is for data on the page itself. There are many ways, using a Master page,
that you can still do dynamic programming in the header section........we
just need more specific questions.

David Wier
MVP/ASPInsider
http://aspn101.com
http://aspexpress.com

"Bob Delaney" <Bo********************@msn.comwrote in message
news:em**************@TK2MSFTNGP03.phx.gbl...
I have been wading through tutorials and PDF files on MSDN and various
other .Net and ASP.Net sites trying to see if one can have an
<asp:ContentPlaceHolderblock within the <headerregion on a MasterPage,
and have the Content Page generate <headerinformation. One on-line
tutorial on MSDN says "I think so," and I am looking for a more definitive
answer. I am trying to do it without success so that I can put clint-side
JavaScript into a page.
Bob Delaney

Dec 27 '06 #2
On Tue, 26 Dec 2006 23:26:41 -0500, Bob Delaney wrote:
I have been wading through tutorials and PDF files on MSDN and various
other .Net and ASP.Net sites trying to see if one can have an
<asp:ContentPlaceHolderblock within the <headerregion on a MasterPage,
and have the Content Page generate <headerinformation. One on-line
tutorial on MSDN says "I think so," and I am looking for a more definitive
answer. I am trying to do it without success so that I can put clint-side
JavaScript into a page.
Bob Delaney
You need not use a content placeholder in the header, the header itself can
be it's own content placeholder of sorts.

By the way, Javascript doesn't have to be in the header either. It can be
in the body as well.
Dec 27 '06 #3
"Bob Delaney" <Bo********************@msn.comwrote in message
news:em**************@TK2MSFTNGP03.phx.gbl...
I have been wading through tutorials and PDF files on MSDN and various
other .Net and ASP.Net sites trying to see if one can have an
<asp:ContentPlaceHolderblock within the <headerregion on a MasterPage,
and have the Content Page generate <headerinformation.
There's no need to do that - the ContentPage can add anything you like to
its MasterPage's header, including new metatags, new stylesheets, new
JavaScript includes etc...

What are you trying to do exactly...?
Dec 27 '06 #4

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

Similar topics

0
by: aleko | last post by:
Hi, Recently I moved a website to a different machine for testing, and I needed to replace the absolute site urls in my stylesheet links. Instead of something like href="/blah/style.css" they...
1
by: Alan Silver | last post by:
Hello, I am just experimenting with master pages, and am trying to add a content placeholder in the <head> section, so that individual pages can set their own page title and meta tags. The...
7
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...
4
by: David Thielen | last post by:
Hi; If I am using master pages, how do I set the <title> and <meta name='description' content='my title'> for each page. Obviously each page will have a different title & description. --...
6
by: tentstitcher | last post by:
Hi all: I have a source xml document with an element of type string. This element contains something like the following: <stringData> &lt;Header&gt; &lt;Body&gt; </stringData> I would like to apply an...
3
by: mirandacascade | last post by:
1) Is it correct that none of the examples in the ElementSOAP tutorial: http://effbot.org/zone/elementsoap-1.htm include an example in which the SOAP message that contains the request includes...
0
by: Bob Delaney | last post by:
Many thanks to the three people who responded to yesterday's post with some helpful suggestions. They asked what I am trying to do. Here is a synopsis: I have a web site (www.mississaugawest.com...
2
by: Sergey Poberezovskiy | last post by:
Hi, What is the "right" way to create a css rule similar to the following in a page header: &lt;style&gt; ..myRule{text-align:right;padding-right:10px;} &lt;/style&gt; I know that you can add simple...
1
by: Sergey Poberezovskiy | last post by:
Hi, What is the "right" way to create the following css rule in a page header: &lt;style&gt; ..myRule{text-align:right;padding-right:10px;} &lt;/style&gt; I know that you can add simple styles as...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.