ASP.NET : Master and Child Page

Master Page
Acts as a template and merging container for pages that are composed only of Content controls and their respective child controls.
Figure 1: Master Page concept

How to Create Master Page (Visual Studio 2010) 
"Add new items" to your project and following this step.
Figure 2: Create Master Page

Figure 3: Source Code in Master Page

Child Page
Act as a content of pages that use same design form Master Page.

How to Create Child Page (Visual Studio 2010)
"Add new items" to your project and following this step. (If you see "Web Form using Master Page" you can selected  then choose your Master Page.)
Figure 4: Create Child Page

Figure 5:  Source Code in Child Page

############################## 

No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...