SlideShare a Scribd company logo
1 of 9
Download to read offline
Chapter 5
ហោ សូ ហនឿនASP.NET (Master Page) 1
Introduction
ហោ សូ ហនឿនASP.NET (Master Page)2
 Master pages are an easy way to provide a template that can
be used by any number of ASP.NET pages in your
application.
 In working with master pages, you create a master file that is
the template referenced by a subpage or content page.
 Master pages use a .master file extension, whereas content
pages use the .aspx file extension you’re used to; but content
pages are declared as such within the file’s Page directive.
 You can place anything you want to be included as part of the
template in the .master file.
 This can include the header, navigation, and footer sections
used across the Web Application.
 The content page then contains all the page content except
for the master page’s elements. At runtime, the ASP.NET
engine combines these elements into a single page for the
end user.
Consideration for a Master Page
ហោ សូ ហនឿនASP.NET (Master Page)3
 The website’s name on the top of the page
 A navigation breadcrumb at the top of the page
 A navigation TreeView on the left of the page,
showing the site’s structure
 A copyright statement and a series of links
Creating a New Master Page
ហោ សូ ហនឿនASP.NET (Master Page)4
Adding “contentPlaceHolder” a Master Page
ហោ សូ ហនឿនASP.NET (Master Page)5
Attaching a Master Page to a Web Page
ហោ សូ ហនឿនASP.NET (Master Page)6
 Create a master page that specifies the common,
site wide user interface elements and the regions
that are customizable on a page-by-page basis.
 Create the site’s ASP.NET pages, with the pages
configured to use the master page created in step 1.
Coding a Content Page
ហោ សូ ហនឿនASP.NET (Master Page)7
Master Page
ហោ សូ ហនឿនASP.NET (Master Page)8
សំនួរ រំលឹក និងស្រាវជ្រាវ
ហោ សូ ហនឿនASP.NET (Master Page)9
1. ត ើ Master Page មានជ្ររតោជន៏អ្វីដល់ការរតងកើ
Website?
2. ត ើ ContentPlaceHolder ាអ្វី?
3. ត ើព ៌មានអ្វីខ្លះគួរជ្រ ូវបានដាក់តលើ Master Page?
4. ត ើ thems ាអ្វី?
5. ត ើ Skins ាអ្វី?
6. ត ើតគរតងកើ Nested Master Page ដូចតតេច?

More Related Content

Viewers also liked

Ray white know how to consistently outperform in the uae property market
Ray white know how to consistently outperform in the uae property marketRay white know how to consistently outperform in the uae property market
Ray white know how to consistently outperform in the uae property market
Janna Yerman
 
In network aggregation techniques for wireless sensor networks - a survey
In network aggregation techniques for wireless sensor networks - a surveyIn network aggregation techniques for wireless sensor networks - a survey
In network aggregation techniques for wireless sensor networks - a survey
Gungi Achi
 
Formasti
FormastiFormasti
Formasti
FOMASTI
 
Results 2010
Results 2010Results 2010
Results 2010
matiseg
 
Holly Rodrigue Design Samples
Holly Rodrigue Design Samples Holly Rodrigue Design Samples
Holly Rodrigue Design Samples
Holly Rodrigue
 
Find hot news in insecticides china news 1401
Find hot news in insecticides china news 1401Find hot news in insecticides china news 1401
Find hot news in insecticides china news 1401
CCM Intelligence
 
ESCUELA DE COMERCIO Y ADMINISTRACION.FACULTAD DE FILOSOFIA.PAULINA CHACHA.EMP...
ESCUELA DE COMERCIO Y ADMINISTRACION.FACULTAD DE FILOSOFIA.PAULINA CHACHA.EMP...ESCUELA DE COMERCIO Y ADMINISTRACION.FACULTAD DE FILOSOFIA.PAULINA CHACHA.EMP...
ESCUELA DE COMERCIO Y ADMINISTRACION.FACULTAD DE FILOSOFIA.PAULINA CHACHA.EMP...
paulinap2
 

Viewers also liked (19)

8 steps to broadcast digital signage using NoviSign
8 steps to broadcast digital signage using NoviSign8 steps to broadcast digital signage using NoviSign
8 steps to broadcast digital signage using NoviSign
 
March2004-CPerlRun
March2004-CPerlRunMarch2004-CPerlRun
March2004-CPerlRun
 
Mg54 imagine+ events
Mg54 imagine+ eventsMg54 imagine+ events
Mg54 imagine+ events
 
Ray white know how to consistently outperform in the uae property market
Ray white know how to consistently outperform in the uae property marketRay white know how to consistently outperform in the uae property market
Ray white know how to consistently outperform in the uae property market
 
In network aggregation techniques for wireless sensor networks - a survey
In network aggregation techniques for wireless sensor networks - a surveyIn network aggregation techniques for wireless sensor networks - a survey
In network aggregation techniques for wireless sensor networks - a survey
 
Food Med Final Handbook ES
Food Med Final Handbook ESFood Med Final Handbook ES
Food Med Final Handbook ES
 
Formasti
FormastiFormasti
Formasti
 
FERNANDO MENDES NOLASCO
FERNANDO MENDES NOLASCOFERNANDO MENDES NOLASCO
FERNANDO MENDES NOLASCO
 
Results 2010
Results 2010Results 2010
Results 2010
 
Comunicado de Prensa Sumavisos Financiamiento
Comunicado de Prensa Sumavisos FinanciamientoComunicado de Prensa Sumavisos Financiamiento
Comunicado de Prensa Sumavisos Financiamiento
 
Anders samenwerken
Anders samenwerkenAnders samenwerken
Anders samenwerken
 
14 razones para_innovar
14 razones para_innovar14 razones para_innovar
14 razones para_innovar
 
Sitepal cultura de ka info
Sitepal cultura de ka infoSitepal cultura de ka info
Sitepal cultura de ka info
 
Cuidadano
CuidadanoCuidadano
Cuidadano
 
Holly Rodrigue Design Samples
Holly Rodrigue Design Samples Holly Rodrigue Design Samples
Holly Rodrigue Design Samples
 
Find hot news in insecticides china news 1401
Find hot news in insecticides china news 1401Find hot news in insecticides china news 1401
Find hot news in insecticides china news 1401
 
Mactac Soignies - Solutions adhésives médicales
Mactac Soignies - Solutions adhésives médicalesMactac Soignies - Solutions adhésives médicales
Mactac Soignies - Solutions adhésives médicales
 
Regelmæssige franske verber
Regelmæssige franske verberRegelmæssige franske verber
Regelmæssige franske verber
 
ESCUELA DE COMERCIO Y ADMINISTRACION.FACULTAD DE FILOSOFIA.PAULINA CHACHA.EMP...
ESCUELA DE COMERCIO Y ADMINISTRACION.FACULTAD DE FILOSOFIA.PAULINA CHACHA.EMP...ESCUELA DE COMERCIO Y ADMINISTRACION.FACULTAD DE FILOSOFIA.PAULINA CHACHA.EMP...
ESCUELA DE COMERCIO Y ADMINISTRACION.FACULTAD DE FILOSOFIA.PAULINA CHACHA.EMP...
 

Similar to Chapter 5 (master page)

04 asp.net session05
04 asp.net session0504 asp.net session05
04 asp.net session05
Niit Care
 
Master Pages And Navigation
Master Pages And NavigationMaster Pages And Navigation
Master Pages And Navigation
Alfredo Cancino
 
04 asp.net session05
04 asp.net session0504 asp.net session05
04 asp.net session05
Mani Chaubey
 
Aspnet master pages_tutorial_10_cs
Aspnet master pages_tutorial_10_csAspnet master pages_tutorial_10_cs
Aspnet master pages_tutorial_10_cs
Vaibhav Chavan
 
Developing and Deploying Custom Branding Solutions in SharePoint 2010
Developing and Deploying Custom Branding Solutions in SharePoint 2010Developing and Deploying Custom Branding Solutions in SharePoint 2010
Developing and Deploying Custom Branding Solutions in SharePoint 2010
jhendrix88
 

Similar to Chapter 5 (master page) (20)

Master pages
Master pagesMaster pages
Master pages
 
masterpages 1.pptx
masterpages 1.pptxmasterpages 1.pptx
masterpages 1.pptx
 
04 asp.net session05
04 asp.net session0504 asp.net session05
04 asp.net session05
 
04 asp.net session05
04 asp.net session0504 asp.net session05
04 asp.net session05
 
Master Pages And Navigation
Master Pages And NavigationMaster Pages And Navigation
Master Pages And Navigation
 
Master page in Asp.net
Master page in Asp.netMaster page in Asp.net
Master page in Asp.net
 
ASP.NET 06 - Customizing Your Sites Appearance
ASP.NET 06 - Customizing Your Sites AppearanceASP.NET 06 - Customizing Your Sites Appearance
ASP.NET 06 - Customizing Your Sites Appearance
 
04 asp.net session05
04 asp.net session0504 asp.net session05
04 asp.net session05
 
Aspnet master pages_tutorial_10_cs
Aspnet master pages_tutorial_10_csAspnet master pages_tutorial_10_cs
Aspnet master pages_tutorial_10_cs
 
Adobe Experience Manager Core Components
Adobe Experience Manager Core ComponentsAdobe Experience Manager Core Components
Adobe Experience Manager Core Components
 
11 asp.net session16
11 asp.net session1611 asp.net session16
11 asp.net session16
 
Lecture11
Lecture11Lecture11
Lecture11
 
Chapter 12
Chapter 12Chapter 12
Chapter 12
 
Developing and Deploying Custom Branding Solutions in SharePoint 2010
Developing and Deploying Custom Branding Solutions in SharePoint 2010Developing and Deploying Custom Branding Solutions in SharePoint 2010
Developing and Deploying Custom Branding Solutions in SharePoint 2010
 
SEO Cheat Sheets for WordPress
SEO Cheat Sheets for WordPressSEO Cheat Sheets for WordPress
SEO Cheat Sheets for WordPress
 
Moss introduction-session02
Moss introduction-session02Moss introduction-session02
Moss introduction-session02
 
Intro to OctoberCMS
Intro to OctoberCMSIntro to OctoberCMS
Intro to OctoberCMS
 
Share point 2013 Building Websites
Share point 2013 Building WebsitesShare point 2013 Building Websites
Share point 2013 Building Websites
 
Grav CMS for Educators
Grav CMS for EducatorsGrav CMS for Educators
Grav CMS for Educators
 
Session iv(master pages)
Session iv(master pages)Session iv(master pages)
Session iv(master pages)
 

More from let's go to study

009 sql server management studio
009 sql server management studio009 sql server management studio
009 sql server management studio
let's go to study
 

More from let's go to study (20)

Rs instructor ppt_chapter11_final
Rs instructor ppt_chapter11_finalRs instructor ppt_chapter11_final
Rs instructor ppt_chapter11_final
 
Ch10
Ch10Ch10
Ch10
 
Before beginning
Before beginningBefore beginning
Before beginning
 
Chapter 8 (security)
Chapter 8 (security)Chapter 8 (security)
Chapter 8 (security)
 
Chapter 7 (ado.net)
Chapter 7 (ado.net)Chapter 7 (ado.net)
Chapter 7 (ado.net)
 
Chapter 6 (data binding)
Chapter 6 (data binding)Chapter 6 (data binding)
Chapter 6 (data binding)
 
Chapter 4 (navigater)
Chapter 4 (navigater)Chapter 4 (navigater)
Chapter 4 (navigater)
 
Chapter 3 (validation control)
Chapter 3 (validation control)Chapter 3 (validation control)
Chapter 3 (validation control)
 
Chapter 2 (web servercontrol)
Chapter 2 (web servercontrol)Chapter 2 (web servercontrol)
Chapter 2 (web servercontrol)
 
Chapter 1 (asp.net over view)
Chapter 1 (asp.net over view)Chapter 1 (asp.net over view)
Chapter 1 (asp.net over view)
 
Before beginning
Before beginningBefore beginning
Before beginning
 
Sadchap04
Sadchap04Sadchap04
Sadchap04
 
Sadchap03
Sadchap03Sadchap03
Sadchap03
 
Sadchap02
Sadchap02Sadchap02
Sadchap02
 
Sadchap01
Sadchap01Sadchap01
Sadchap01
 
database design process
database design processdatabase design process
database design process
 
009 sql server management studio
009 sql server management studio009 sql server management studio
009 sql server management studio
 
007 sql server-installation
007 sql server-installation007 sql server-installation
007 sql server-installation
 
Chapter 2-html-tage
Chapter 2-html-tageChapter 2-html-tage
Chapter 2-html-tage
 
Chapter 0 before you start
Chapter 0   before you startChapter 0   before you start
Chapter 0 before you start
 

Recently uploaded

Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
AnaAcapella
 

Recently uploaded (20)

Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 

Chapter 5 (master page)

  • 1. Chapter 5 ហោ សូ ហនឿនASP.NET (Master Page) 1
  • 2. Introduction ហោ សូ ហនឿនASP.NET (Master Page)2  Master pages are an easy way to provide a template that can be used by any number of ASP.NET pages in your application.  In working with master pages, you create a master file that is the template referenced by a subpage or content page.  Master pages use a .master file extension, whereas content pages use the .aspx file extension you’re used to; but content pages are declared as such within the file’s Page directive.  You can place anything you want to be included as part of the template in the .master file.  This can include the header, navigation, and footer sections used across the Web Application.  The content page then contains all the page content except for the master page’s elements. At runtime, the ASP.NET engine combines these elements into a single page for the end user.
  • 3. Consideration for a Master Page ហោ សូ ហនឿនASP.NET (Master Page)3  The website’s name on the top of the page  A navigation breadcrumb at the top of the page  A navigation TreeView on the left of the page, showing the site’s structure  A copyright statement and a series of links
  • 4. Creating a New Master Page ហោ សូ ហនឿនASP.NET (Master Page)4
  • 5. Adding “contentPlaceHolder” a Master Page ហោ សូ ហនឿនASP.NET (Master Page)5
  • 6. Attaching a Master Page to a Web Page ហោ សូ ហនឿនASP.NET (Master Page)6  Create a master page that specifies the common, site wide user interface elements and the regions that are customizable on a page-by-page basis.  Create the site’s ASP.NET pages, with the pages configured to use the master page created in step 1.
  • 7. Coding a Content Page ហោ សូ ហនឿនASP.NET (Master Page)7
  • 8. Master Page ហោ សូ ហនឿនASP.NET (Master Page)8
  • 9. សំនួរ រំលឹក និងស្រាវជ្រាវ ហោ សូ ហនឿនASP.NET (Master Page)9 1. ត ើ Master Page មានជ្ររតោជន៏អ្វីដល់ការរតងកើ Website? 2. ត ើ ContentPlaceHolder ាអ្វី? 3. ត ើព ៌មានអ្វីខ្លះគួរជ្រ ូវបានដាក់តលើ Master Page? 4. ត ើ thems ាអ្វី? 5. ត ើ Skins ាអ្វី? 6. ត ើតគរតងកើ Nested Master Page ដូចតតេច?