Question about Master files
Visual Studio 2008 ASP.NET
I understand what a master file is that will be used for all the other pages when needed. But my question is how does the page know where to be placed in the master page? In otherwords, say the master page as a logo at the top along with other stuff. And at the bottom I have some links and a copyright statement. I want the content of the other pages that use this master page to go in between. How do you set that area in the master page to be for this?
Thanks for your help!
Warren
Re: Question about Master files
Re: Question about Master files
Re: Question about Master files
Sorry about that - I clicked the wrong forum link!
Re: Question about Master files
Add one or more ContentPlaceHolder controls to the Master Page. They can be placed anywhere you need them.
Add a Content control in the Child page for each ContentPlaceHolder control as needed (they are optional). Associate the content control to a place holder control via the ContentPlaceHolderId.
The Content controls are where you place the typical ASP.NET/HTML controls or any other markup.
1 Attachment(s)
Re: Question about Master files
Quote:
Originally Posted by
WarrenW
Visual Studio 2008 ASP.NET
I understand what a master file is that will be used for all the other pages when needed. But my question is how does the page know where to be placed in the master page? In otherwords, say the master page as a logo at the top along with other stuff. And at the bottom I have some links and a copyright statement. I want the content of the other pages that use this master page to go in between. How do you set that area in the master page to be for this?
Thanks for your help!
Warren
The attached file is an example of simple Login Form which uses master pages.
Also the login form is connected with SQL Databases.
Attachment 71036