The community is working on translating this tutorial into Portuguese, but it seems that no one has started the translation process for this article yet. If you can help us, then please click "More info".
If you are fluent in Portuguese, then please help us - just point to any untranslated element (highlighted with a yellow left border - remember that images should have their titles translated as well!) inside the article and click the translation button to get started. Or have a look at the current translation status for the Portuguese language.
If you see a translation that you think looks wrong, then please consult the original article to make sure and then use the vote button to let us know about it.
Please help us by translating the following metadata for the article/chapter, if they are not already translated.
If you are not satisfied with the translation of a specific metadata item, you may vote it down - when it reaches a certain negative threshold, it will be removed. Please only submit an altered translation of a metadata item if you have good reasons to do so!
Ever since the first website was created and expanded from a single page to several pages, the need to share specific parts of the pages became obvious. Use cases for this ranges from having the same footer at the bottom of each page belonging to the same website, to re-using very complex layouts, meta data and everything else around the actual content of a web page.
Various server-side technologies have solved this problem in different ways, from the include() statement of PHP to the MasterPages technology of ASP.NET WebForms. They all come with their own set of advantages and disadvantages, but they all solve the same problem: They allow you to re-use all the stuff that would otherwise have to be repeated in each file (and even worse: manually edited in each file for even the smallest, global change) and only specify the unique content for each of your pages.
In ASP.NET MVC, you can use something called a Layout, often in combination with Sections. You can have one or several Layouts in your project and each can include zero or more Sections. We will go through all the various Layout-related concepts in the following articles.