Master Page. Why does this happens?

S

shapper

Hello,

I created a Master Page in ASP.NET 3.5 and VS 2008.

Why is a ContentPlaceHolder inserted on the document head?

<head runat="server">
<title></title>
<asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server"></
asp:ContentPlaceHolder>
</head>

Can't I access the head by doing in the pages that use the master
pages something like:

Page.Header ...

What am I am missing here?

I think in ASP.NET 2.0 this was not inserted.

I am trying to create a Master Page and Nested Master Pages.

Thanks,

Miguel
 
C

Cowboy \(Gregory A. Beamer\)

The idea of adding head content tags came from Expression (or rather from
the Expression and VS team, first introduced in Expression).

The idea here is you can, using tags alone, add header content, like style
sheet links, javascript links, etc.

How useful is it? I am inclined to delete them in most instances. :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,186
Members
46,744
Latest member
CortneyMcK

Latest Threads

Top