[How Do I:] Work with Master Pages Declaratively and Programmatically

Please install Silverlight or click download to watch video locally.

In this video Chris Pels will show several aspects of defining and using master pages in an ASP.NET web site. First, see how to create master pages declaratively using the ASP.NET master page model and learn what information is best suited to a master page compared to an individual content page. Next, see how to programmatically assign master pages on-the-fly in an individual content page. Also learn how to create a base page class which assigns a master page programmatically for all pages that inherit from the base class. In addition, see how to set the master page in the web.config file. Lastly, see how to access elements in a master page from an individual content page including some best practices for structuring access to master page elements.

Presented by Chris Pels

Duration: 29 minutes, 49 seconds

Date: 21 February 2008

Watch    Video   |   Download    Video   |   VB Code    C# Code

Video downloads: WMV  |  Zune  |  iPod  |  PSP  |  MPEG-4  |  3GP

Audio downloads: AAC  |  WMA  |  MPEG-4  |  MPEG-3  |  MPEG-2

Comments : 9

Leave a Comment

cv_vikram : On August 09, 2008 8:34 AM said:

thanks......

radu_m : On October 10, 2008 8:58 PM said:

great video, thanks

djibril_chimere_DIAW : On October 29, 2008 11:31 AM said:

Thanks! Jërëjëf!

djafer : On November 11, 2008 1:51 PM said:

çook teşekkürler.

panther125 : On December 10, 2008 8:36 AM said:

I am new to this but this is really an important information for me. Can you give me little more information on this.

--

Regards

Pankaj Deharia

emobiletech.blogspot.com (Technologies in Mobile World)

g4recruitmentblog.blogspot.com (Online Test conduction Process and Search Jobs)

bohunt : On February 13, 2009 3:34 PM said:

Thanks.

alfredo : On February 19, 2009 11:05 PM said:

Thanks again Chris, this has been very educational and useful to me.

drini83 : On April 09, 2009 7:39 AM said:

thaNks very good video and tips

hasanlakhani : On May 17, 2009 5:42 AM said:

Hey Chris, All files are running fine in both VB & CS 2005 and 2008. But when I run "tools.aspx" file in C Sharp and try to view the page, it gives me error as follows:

"Content controls have to be top-level controls in a content page or a nested master page that references a master page."

Chris and Others please help

Leave a Comment

You must be logged in to leave a comment. Click here to log in.

Microsoft Communities