We will be undergoing scheduled maintenance on May 20th, 2013 at 02:00 GMT.
Visitors to VTC.com will be able to view all introductory videos for each training course.
Free Trial Members will gain access to first three chapters for each training course.
Full Access Members have full access to VTC.com�s entire library of video tutorials.
In this video, we're going to turn our attention from the Master Page over to the Content Page. Now if you remember in the animation that I talked to you about with the Master Pages we talked about how the Content Page matches or names the Master Page, up here in this Page Directive and it goes into the Content Placeholders on the Master Page. And then that produces the final web page that we see. Well in this video I just want to show you something basic about the Content Page and then in the next video, we'll go out into Visual Web Developer and play with the Content Page just a little bit and show you how we can kind of tinker around with that and make changes in our website and so forth. So the first thing that you need to understand is the Content Page contains, well content, that's what it's there for. The Content Tags that you're going to see on the Content Page are going to look like this. You're going to see ASP:Content then you'll see an ID for that content. Then you'll see this Content Placeholder ID. Now this will have to match the Content Placeholder ID of a Content Tag on the Master ASPX Page. Now this will usually be the only tags or the main tags that will appear. You're not going to see HTML, Body, you know Head all that kind on a Content Page. You're going to see these ASP:Content, but now inside here, nested in here you will see all your Divs, H1's, H2's, you know anything like that, you'll see all those in here and all of this will be content. Anything in between here is going to appear in that Content Holder on the Master Page. Now keep in mind, the Master Page most likely, usually will have more then one Content Placeholder. And so you are in your Content Page probably going to have more then one Content Tag with a different id pointing to a different placeholder. You'll usually have a placeholder for the main body, one for the head; you know one for the footer, all that kind of stuff. So very easy to build these things and then move data around and change them. Now you're not going to see a HTML, a Heard or a Title Tag on these Content Pages, so don't look for them. These are going to be in the Master Page File that is how these things fit together. So if you've got the basic concept and again I know I'm beating a dead horse, but this is fundamental to ASP Page Consistency now, that's the content side of it. Now in the next video or two, we'll jump out individual web developer and kind of play with this Content-Master Page Relationship and show you first of all how it works and then some of the neat things you can do with it.
| Course: | Designing and Developing ASP.NET 4 Web Apps (Exam 70-519) |
| Author: | Mark Long |
| SKU: | 34292 |
| ISBN: | 978-1-61866-029-9 |
| Release Date: | 2011-12-31 |
| Duration: | 8.5 hrs / 108 lessons |
| Work Files: |
Yes |
| Captions: | No |
| Compatibility: |
Vista/XP/2000, OS X, Linux QuickTime 7, Flash 8 |