How to use ASP.Net to use the form Master Page
This article mainly explains "how to use the form master page for ASP.Net". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn "how to use the form master page with ASP.Net".
This paper gives an example of how to use the form master page skillfully by ASP.Net. Share it with you for your reference. The specific analysis is as follows:
Background: the basic frame structure of each web page is similar:
When you browse a website, you will find that in many websites, the basic framework of each page is the same. For example, the top is the title of the website, the middle is the content, and the bottom is the copyright of the website, development provider and other information:
In these pages, the header, bottom style and content are all the same, the only difference is the middle content.
So when making a website, you can separate these common things into a "form master page" and nest them when needed.
Skillfully use form master items:
Let's get started (this article uses VisualStudio2013 as the programming environment, and some steps may differ from other versions, please note for yourself):
1. Add a Web forms master page to the project test.Master: right-click Project-add-New item-Web forms Master Page
The copy code is as follows: