|
-
May 15th, 2009, 02:54 PM
#1
Thread Starter
Frenzied Member
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
Last edited by WarrenW; May 15th, 2009 at 03:13 PM.
Reason: Added version to posting
-
May 15th, 2009, 03:10 PM
#2
Re: Question about Master files
-
May 15th, 2009, 03:11 PM
#3
Re: Question about Master files
CodeBank contributions: Process Manager, Temp File Cleaner
 Originally Posted by SJWhiteley
"game trainer" is the same as calling the act of robbing a bank "wealth redistribution"....
-
May 15th, 2009, 03:13 PM
#4
Thread Starter
Frenzied Member
Re: Question about Master files
Sorry about that - I clicked the wrong forum link!
-
May 15th, 2009, 05:16 PM
#5
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.
-
May 17th, 2009, 10:49 AM
#6
Fanatic Member
Re: Question about Master files
 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.
LoginControl.zip
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|