Explain how the content pages can be attached to Master pages ?

 Posted by Bharathi Cherukuri on 7/31/2012 | Category: ASP.NET Interview questions | Views: 1461 | Points: 40

There are 3 levels by which the content pages can be attached to Master pages. Each level is explained briefly as follows.

1) At thye Page Level: To bind a content page to a master page, You can use a page directive in each content page.

2) At the application level: You can specify all the ASP.NET pages (.aspx files) in the application to automatically bind to a master page, by making a setting in the pages element of the application's configuration file (Web.config).

3)At the folder level: In this level, it 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.

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response