CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 3/13/2008 8:43:29 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 3 Views: 29 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
4 Items, 1 Pages 1 |< << Go >> >|
ShijuKadamala
Asp.Net User
ContentPlaceHolder in MasterPage Header3/13/2008 8:43:29 PM

0/0

In visual studio 2008, MasterPage has a section ContentPlaceHolder in the header. What is the use of that section?

Thanks in advance

 

 

tmpuzer
Asp.Net User
Re: ContentPlaceHolder in MasterPage Header3/13/2008 9:42:14 PM

0/0

 I haven't used VS2008 but my guess is that the purpose of this is so that you can place meta tags (or anything else you might typically put in the html header section) that are related to your content page.

 
Example:

<asp:Content ID="HeaderContent" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

 <meta name="keywords" content="keyword1, keyword2, ..., keywordN" />

</asp:Content>
 

komakula
Asp.Net User
Re: ContentPlaceHolder in MasterPage Header3/13/2008 10:06:46 PM

0/0

Amanda Wang - M
Asp.Net User
Re: ContentPlaceHolder in MasterPage Header3/17/2008 2:45:57 AM

0/0

Hi,

The contentplaceholder in the header section is used to add additional tags inside head, like <meta> and <link> for the content page. Which can be specific to the content page, and we wouldn?t want to include them in the .master for every page.

The details you can see this link: http://odetocode.com/Blogs/scott/archive/2006/04/10/3258.aspx

 

Hope it helps.


Please remember to mark the replies as answers if they help and unmark them if they provide no help.


Yours sincerely,
Amanda Wang
Microsoft Online Community Support
4 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Beginning ASP.NET 3.5 in VB 9.0: From Novice to Professional Authors: Matthew MacDonald, Pages: 1149, Published: 2007
Beginning ASP.NET 3.5 in C# 2008: From Novice to Professional Authors: Matthew MacDonald, Pages: 954, Published: 2007
Pro ASP.NET 2.0 in C# 2005 Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1255, Published: 2005
Pro ASP.NET 2.0 in C# 2005: Create Next-generation Web Applications with the Latest Version of Microsoft's Revolutionary Technology Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1426, Published: 2006
Beginning ASP.NET 2.0 in VB 2005: From Novice to Professional Authors: Matthew MacDonald, Pages: 1063, Published: 2006
Pro ASP.NET 3.5 in C# 2008 Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1498, Published: 2007
Visual C# 2005: A Developer's Notebook Authors: Jesse Liberty, Pages: 221, Published: 2005
Expert C# 2005 Business Objects Authors: Rockford Lhotka, Pages: 668, Published: 2006
Beginning ASP.NET 3.5: In C# and VB Authors: Imar Spaanjaars, Pages: 734, Published: 2008
ASP.NET 2.0 Cookbook Authors: Michael A. Kittel, Geoffrey T. Leblond, Pages: 989, Published: 2005

Web:
ContentPlaceHolder in MasterPage Header - ASP.NET Forums Re: ContentPlaceHolder in MasterPage Header. 03-13-2008, 5:42 PM ... Re: ContentPlaceHolder in MasterPage Header. 03-13-2008, 6:06 PM ...
Understanding Master Pages - ASP.NET 2.0 They are defined in the file MasterPage.Master as . So in the case of figure 1 you would have ...
WorldofASP.NET: Working with Master Pages and Basics of Master ... Aug 23, 2007 ... For instance, you could build a Web page that include header,navigation ... then the MasterPage ContentPlaceHolder content will be ignored. ...
Create a master page For example, the style sheet link in the following master page header is outside the content placeholder, so it will be applied to all pages based on the ...
K. Scott Allen : The ContentPlaceHolder – Not Just For Content The master page only needs to swap the ContentPlaceHolder into the Header controls collection during the page lifecycle. In other words, with a master page ...
Adding a ContentPlaceHolder to the Master Page Header - ASP.NET Forums Adding a ContentPlaceHolder to the Master Page Header. Last post 04-17-2006 10: 08 AM by dannychen. 1 replies. Sort Posts: ...
Marco Bellinaso's Blog - An excerpt from Chapter 2: Enter the ... Mar 29, 2006 ... Following is some code for a master page that contains some text, a header, a footer, and defines a ContentPlaceHolder control between the ...
Allan on Writing .NET - All posts tagged 'asp.net'

Child Master Page's Header

...
MasterPages and applying CSS to content pages - Application ... Right now the header of my master page contains all of the CSS styles for all of the pages that might be loaded in my ContentPlaceHolder. ...
Use ZedGraph with a MasterPage - ZedGraphWiki A web page called 'MasterPage.master' which implements the MasterPage with a simple header and footer, and a single ContentPlaceHolder to contain the page ...




Search This Site:










dnn + catalook site

deployment

controls working on development machine, not working on server

how to dynamically load web user control

webproject reference in class lib

using the dnn utilities.calendar class

another impersonation problem - creating a reusable function

clarification needed on the discussions and feedback module

hosting more than 1 dnn site with a godaddy deluxe hosting account

disappearing menu

locked out of portal login - dnn 3.2.2

how can i refresh dnn's cache?

looking for orange futurism skin

new install at webhost4life

question password

creating user control that allow literal content

how to build application.exe

security of folder

loading pages and data access

pain with panes

compilation error cs0030: cannot convert type 'masterpage.masterpage' to 'asp.masterpage_masterpage_master'

problem: onitemcommand on datagrid causes error in module

create new portal in dnn 3.0.4

where is styles.css in visual studio 2005 webapp?

windows password popup problem

treeview efficiency

urgent help needed!!

how to check the username with active directory and fetch the user details from the active directory?

new module - defmatchgame

need some help on an error in datagrid paging (code in post)

 
All Times Are GMT