.MASTER File
.master is ASP.NET Master Page
Features | Description |
---|---|
File Extension | .master |
Format | Text |
Created by | Microsoft |
Category | Web |
.master is ASP.NET Master Page
Features | Description |
---|---|
File Extension | .master |
Format | Text |
Created by | Microsoft |
Category | Web |
What's on this Page
The master file extension is related to ASP.NET applications.
ASP.NET master pages allow you to create a consistent layout for the pages in your application. A single master page defines the look and feel and standard behavior that you want for all of the pages (or a group of pages) in your application. You can then create individual content pages that contain the content you want to display. When users request the content pages, they merge with the master page to produce output that combines the layout of the master page with the content from the content page.
A master page looks very similar to an ASPX file format.
These files use an @ Master directive instead of an @ Page directive at the top. *.master pages will define the <html>, <head>, <body >, and <form>, tags.
To use Master Pages in your ASP.NET Web application, you create a Master Page for the site layout and design and create Content Pages for each content resource, and then connect the content pages to the master pages using the new controls and attributes supplied by ASP.NET.
After you make that connection, ASP.NET will serve up the page by merging the content from the master page with the content of the content pages.
Example of ASP.NET master page:<%@ Master Language="C#" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"><html xmlns="http://www.w3.org/1999/xhtml" ><head runat="server" > <title>Master page title</title></head><body> <form id="form1" runat="server"> <table> <tr> <td><asp:contentplaceholder id="Main" runat="server" /></td> <td><asp:contentplaceholder id="Footer" runat="server" /></td> </tr> </table> </form></body></html>A master file extension is related to ASP.NET applications and websites developed and running on ASP.NET platform.