O'Reilly logo

Beginning ASP.NET for Visual Studio 2015 by William Penberthy

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 7Creating Consistent-Looking Websites

What you will learn in this chapter:

  • How to create and use an ASP.NET master page for your Web Forms pages
  • How to create and use an ASP.NET MVC layout page
  • How to create and use Razor sections in ASP.NET MVC
  • How to create and integrate Web Forms content pages
  • How to create and integrate MVC content pages
  • How to create a base page

Code Downloads for this Chapter:

The wrox.com code downloads for this chapter are found at www.wrox.com/go/beginningaspnetforvisualstudio on the Download Code tab. The code is in the chapter 07 download and individually named according to the names throughout the chapter.

You have been doing bits and pieces of work for the sample application, plugging in some information here, some there. In this chapter, you start pulling this all together and unifying the look and feel of the website. You do this by creating a simple, single look and feel that you then ensure all pages will follow. This look and feel includes consistent styling, menus, footers, and the consistent display of information—all of which users expect in a website.

In future chapters you will be plugging in more functionality. In this chapter, you are building the shell of the application, the foundation on which all the rest of the items going forward will be built. You will also get an introduction on how to separate much of the design of the page from the functionality of the page by allowing the common areas to be managed independently ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required