简体   繁体   中英

Till what level we can attach content page to a master page

I wanted to know that till what level we can attach content page to a master page. I have tried to add 7th but not succeed.

By Google this, I got the answer.

You can attach content pages to a master page at three levels

At the page level You can use a page directive in each content page to bind it to a master page, as in the following code example.

At the application level By making a setting in the pages element of the application's configuration file (Web.config), you can specify that all ASP.NET pages (.aspx files) in the application automatically bind to a master page. The element might look like the following.

At the folder level This strategy is like binding at the application level, except that you make the setting in a Web.config file in one folder only. The master-page bindings then apply to the ASP.NET pages in that folder.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM