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

Comments

Add your comment:

Roly-Poly Bridge

Heatherwick Studio's London based rolling bridge is an engineering marvel. Lots of fun, and immensely satisfying to watch (via YouTube, assuming you can't see it in person). From Heatherwick Studio: ...

Master Nerd Births Perfect Copy Cat Bot

Can't help but smile at this goofy, endearing nerd "master" (Vitalijus Rodnovas) guiding his copy-cat protege robot (coined Waldo). The rig allows Waldo to mimic Rodnovas' body movements in ...

Building-Sized Überorgan Emits Heavenly Music and Farts

Tim Hawkinson is an artist who truly inspires. The Los Angeles based artist creates complex, whimsical sculptures with simple mechanics and basic materials. One of his most notable pieces is the ...

Super Slim and Sexy Xbox Mod

iPods are getting smaller and smaller each year. Why not Xbox? Bandit5317 has made an 1-inch thick Xbox. The ultimate Xbox mod: super slim. Pay attention, Microsoft. The "Xbox Micro" has a ...

Laser Coil Gun Shoots Bullets on Pure Electricity

Wow, kudos to Daniel Eindhoven for his incredible laser-lit coil gun. This bad boy shoots bullets on pure electricity and can shoot up to 85 km/hr. Daniel's specs: Fully semi-automatic, up to 14 shots ...

loading...