Declaratively and programmatically use master pages

Declaratively and programmatically use master pages

In this video tutorial, 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.

Hosted by microsoft.com
Creator's Site: www.asp.net
Curated By: rmansur

Comments

Add your comment:

Make-It-Yourself LEGO Gummies

Turkey day is over, and you have this nice Friday-Saturday-Sunday stretch before it's back the daily grind. Here's a project that inspires both young and old: LeGummies brick shaped gummy candies ...

Geek-Shooting Rubberband Machine Gun

It's the idea that counts. This geeky rubberband machine gun is pretty sweet looking... but I wish it had a little more force. The gun can very quickly shoot (200!) rubberbands, but it just tumbles ...

4 Years in the Making: Insane Papercraft City

Tokyo art student, Wataru Itou, spent four long years crafting his meticulous paper city, entitled "A Castle On the Ocean".  The miniature papercraft city was constructed with ...

Jetman Flys Over Atlantic with DIY Wings - Plummets!

Yves Rossy, AKA Jetman, attempted to fly across the Atantic from Morocco to Spain yesterday. His homemade, jet powered wings "span 8 feet and are powered by four kerosene-fueled jet engines ...

Avoid Turkey-Frying-Fire Disaster this Thanksgiving

Thinking of deep frying a turkey this Thanksgiving? Careful. Or this might happen: Luckily, Alton Brown (of Food Network) offers a thorough step-by-step on how to fry that bird. Hackaday has also ...

loading...